mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-05 23:35:48 +03:00
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
This commit is contained in:
committed by
Daniel Veillard
parent
2818aec361
commit
a1981a0da0
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user