summaryrefslogtreecommitdiff
path: root/recipes/libxml2
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2013-10-04 12:20:22 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-10-04 12:26:21 +0200
commit6f46eba7b007e89b9b27376fb5ee700012e8c061 (patch)
tree4e82a9e0ba24981a92f7ee411d523a9163d23fa7 /recipes/libxml2
parenta95fed4be84be4b4e452799e37d549efb7c71c90 (diff)
libxml: Fix python module compilation on Win32
Diffstat (limited to 'recipes/libxml2')
-rw-r--r--recipes/libxml2/0003-Enable-windows-cross-compilation.patch10
1 files changed, 3 insertions, 7 deletions
diff --git a/recipes/libxml2/0003-Enable-windows-cross-compilation.patch b/recipes/libxml2/0003-Enable-windows-cross-compilation.patch
index f7286f46..b617a0e4 100644
--- a/recipes/libxml2/0003-Enable-windows-cross-compilation.patch
+++ b/recipes/libxml2/0003-Enable-windows-cross-compilation.patch
@@ -25,7 +25,7 @@ index fdbe239..f8a0820 100644
+ ;;
+esac
+
-+if test "x$cross_compiling" = "xyes" -a "x$platform_win32" = "xyes" ; then
++if test "x$platform_win32" = "xyes" ; then
+AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
+pythondir=$am_cv_python_pythondir
+PYTHON_SUBDIR=python
@@ -55,12 +55,8 @@ index fdbe239..f8a0820 100644
if test "${PYTHON}" != ""
then
- WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
-+ if test "x$cross_compiling" != "xyes"; then
-+ WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
-+ else
-+ WIN32_EXTRA_PYTHON_LIBADD="${PYTHON_LIBS}"
-+ WIN32_EXTRA_PYTHON_CFLAGS="${PYTHON_INCLUDES}"
-+ fi
++ WIN32_EXTRA_PYTHON_LIBADD="${PYTHON_LIBS}"
++ WIN32_EXTRA_PYTHON_CFLAGS="${PYTHON_INCLUDES}"
fi
;;
*-*-cygwin*)