[libxslt] link python module with python library



commit a1981a0da0201b8da3713aafc1c0656be26e21f0
Author: Frederic Crozat <fcrozat mandriva com>
Date:   Thu Sep 24 18:16:07 2009 +0200

    link python module with python library
    
    libxslt python module wasn't linked with python library
    * configure.in python/Makefile.am: detect and add appropriate linking
      flags

 configure.in       |    2 ++
 python/Makefile.am |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 756003d..7fef7a2 100644
--- a/configure.in
+++ b/configure.in
@@ -341,6 +341,7 @@ except: print 0"`
 		    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
@@ -358,6 +359,7 @@ else
 fi
 AC_SUBST(pythondir)
 AC_SUBST(PYTHON_SUBDIR)
+AC_SUBST(PYTHON_LIBS)
 
 AC_ARG_WITH(crypto, [  --with-crypto           Add crypto support to exslt (on)])
 WITH_CRYPTO=0
diff --git a/python/Makefile.am b/python/Makefile.am
index 9591c11..fd3ef28 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -36,7 +36,7 @@ all-local: libxslt.py
 python_LTLIBRARIES = libxsltmod.la
 
 libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c
-libxsltmod_la_LIBADD = $(mylibs) 
+libxsltmod_la_LIBADD = $(mylibs) @PYTHON_LIBS@
 
 libxslt.py: $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py
 	cat $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py > libxslt.py



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]