>From a2fadfd100f106bad5331c69dd9604fd11072919 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Fri, 11 Sep 2009 16:28:44 +0200 Subject: [PATCH] fix python module linking --- configure.in | 2 ++ python/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index 7b8fd44..90d8b73 100644 --- a/configure.in +++ b/configure.in @@ -742,6 +742,7 @@ if test "$with_python" != "no" ; then PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` fi fi + PYTHON_LIBS=`python$PYTHON_VERSION-config --libs` fi if test "$with_python" != "" then @@ -761,6 +762,7 @@ else fi AC_SUBST(pythondir) AC_SUBST(PYTHON_SUBDIR) +AC_SUBST(PYTHON_LIBS) dnl check for dso support WITH_MODULES=0 diff --git a/python/Makefile.am b/python/Makefile.am index 23898fa..8f148b1 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -31,7 +31,7 @@ python_LTLIBRARIES = libxml2mod.la libxml2mod_la_SOURCES = libxml.c types.c nodist_libxml2mod_la_SOURCES = libxml2-py.c -libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ +libxml2mod_la_LIBADD = $(mylibs) @CYGWIN_EXTRA_PYTHON_LIBADD@ @PYTHON_LIBS@ libxml.c: libxml2-py.h # to generate before to compile -- 1.6.4.2