summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2009-09-24 18:16:07 +0200
committerDaniel Veillard <veillard@redhat.com>2009-09-24 18:16:07 +0200
commita1981a0da0201b8da3713aafc1c0656be26e21f0 (patch)
treeb559c8d7e85f7d1c9fa860f8930734110cb520ef
parent2818aec36119907206bab050811e4ec8347ffa40 (diff)
downloadlibxslt-a1981a0da0201b8da3713aafc1c0656be26e21f0.tar.gz
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
-rw-r--r--configure.in2
-rw-r--r--python/Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 756003d3..7fef7a2f 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 9591c111..fd3ef283 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