From d32efd14bf71e131c9044eaef6736170c44600d8 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 23 Apr 2009 22:53:24 +0000 Subject: [PATCH] python/Makefile.am: Fix build with libtool (cherry picked from commit 199c65f90d897d38a35883863f51d3b48986e850) --- python/Makefile.am | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/python/Makefile.am b/python/Makefile.am index 59475e8..76c681f 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -19,27 +19,13 @@ mylibs= \ LDADD = pythondir = $(libdir)/python${PYVER}/site-packages -python_PROGRAMS = rpmmodule.so +python_LTLIBRARIES = rpmmodule.la -noinst_PROGRAMS = poptmodule.so +rpmmodule_la_LDFLAGS = -module -avoid-version +rpmmodule_la_LIBADD = $(mylibs) $(LIBS) -lpython${PYVER} -rpmmodule_so_SOURCES = -rpmmodule_so_CFLAGS = -fPIC -DPIC -rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -lpython${PYVER} -shared -Wl,-soname,rpmmodule.so - -poptmodule_so_SOURCES = poptmodule.c -poptmodule_so_CFLAGS = -fPIC -DPIC -poptmodule_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,poptmodule.so - -noinst_LTLIBRARIES = librpmmodule.la -librpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c header-py.c db-py.c - -rpmmodule.so: $(librpmmodule_la_OBJECTS) - $(LINK) -o $@ $(librpmmodule_la_OBJECTS) $(rpmmodule_so_LDFLAGS) - -poptmodule.so: $(poptmodule_so_OBJECTS) - $(LINK) -o $@ $(poptmodule_so_OBJECTS) $(poptmodule_so_LDFLAGS) +rpmmodule_la_SOURCES = rpmmodule.c hash.c upgrade.c header-py.c db-py.c .PHONY: lclint lclint: - lclint $(DEFS) $(INCLUDES) $(librpmmodule_la_SOURCES) + lclint $(DEFS) $(INCLUDES) $(rpmmodule_la_SOURCES)