mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
Fix Python bindings under Windows
- Correct linker flags for MinGW-w64 - Adjust PATH to find libxml2.dll when running tests
This commit is contained in:
parent
e8fdf5df6e
commit
7f40ed01f7
@ -1620,7 +1620,14 @@ case "$host" in
|
|||||||
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
||||||
if test "${PYTHON}" != ""
|
if test "${PYTHON}" != ""
|
||||||
then
|
then
|
||||||
WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
|
case "$host" in
|
||||||
|
*-w64-mingw*)
|
||||||
|
WIN32_EXTRA_PYTHON_LIBADD="-shrext .pyd -L${pythondir}/../../lib -lpython${PYTHON_VERSION}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*-*-cygwin*)
|
*-*-cygwin*)
|
||||||
|
@ -66,6 +66,7 @@ tests: $(PYTESTS)
|
|||||||
export PYTHONPATH; \
|
export PYTHONPATH; \
|
||||||
LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
|
LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
|
||||||
export LD_LIBRARY_PATH; \
|
export LD_LIBRARY_PATH; \
|
||||||
|
export PATH="$(top_builddir)/.libs:$$PATH" ; \
|
||||||
for test in $(PYTESTS) ; \
|
for test in $(PYTESTS) ; \
|
||||||
do log=`$(PYTHON) $(srcdir)/$$test` ; \
|
do log=`$(PYTHON) $(srcdir)/$$test` ; \
|
||||||
if [ "`echo $$log | grep OK`" = "" ] ; then \
|
if [ "`echo $$log | grep OK`" = "" ] ; then \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user