diff --git a/python/Makefile.am b/python/Makefile.am index 96eda37..59475e8 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -25,7 +25,7 @@ noinst_PROGRAMS = poptmodule.so rpmmodule_so_SOURCES = rpmmodule_so_CFLAGS = -fPIC -DPIC -rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -shared -Wl,-soname,rpmmodule.so +rpmmodule_so_LDFLAGS = $(mylibs) $(LIBS) -lpython${PYVER} -shared -Wl,-soname,rpmmodule.so poptmodule_so_SOURCES = poptmodule.c poptmodule_so_CFLAGS = -fPIC -DPIC diff --git a/rpm-4_0.spec b/rpm-4_0.spec index f7d8291..e3e15d4 100644 --- a/rpm-4_0.spec +++ b/rpm-4_0.spec @@ -533,6 +533,7 @@ fi + Set %%_verify_elf_method to fhs=relaxed,rpath=normal,textrel=normal,unresolved=relaxed - Link librpmdb with -lpopt. +- Link rpmmodule.so with -lpython%%__python_version. * Wed Jan 11 2006 Dmitry V. Levin 4.0.4-alt55 - platform.in: