mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
link python module with python library
* configure.in python/Makefile.am: libxml2 python module wasn't linked with python library
This commit is contained in:
committed by
Daniel Veillard
parent
84bff68e03
commit
e21731dec8
@@ -742,6 +742,7 @@ if test "$with_python" != "no" ; then
|
|||||||
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
|
PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
PYTHON_LIBS=`python$PYTHON_VERSION-config --libs`
|
||||||
fi
|
fi
|
||||||
if test "$with_python" != ""
|
if test "$with_python" != ""
|
||||||
then
|
then
|
||||||
@@ -761,6 +762,7 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(pythondir)
|
AC_SUBST(pythondir)
|
||||||
AC_SUBST(PYTHON_SUBDIR)
|
AC_SUBST(PYTHON_SUBDIR)
|
||||||
|
AC_SUBST(PYTHON_LIBS)
|
||||||
|
|
||||||
dnl check for dso support
|
dnl check for dso support
|
||||||
WITH_MODULES=0
|
WITH_MODULES=0
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ python_LTLIBRARIES = libxml2mod.la
|
|||||||
|
|
||||||
libxml2mod_la_SOURCES = libxml.c types.c
|
libxml2mod_la_SOURCES = libxml.c types.c
|
||||||
nodist_libxml2mod_la_SOURCES = libxml2-py.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
|
libxml.c: libxml2-py.h # to generate before to compile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user