Fix the whole python building process to do proper crosscompiling for all python
modules in openwrt. Thanks to ryd for helping to make this possible. (Only numpy is completly broken now because it has dependencies which where pervioulsy taken from the build system) git-svn-id: svn://svn.openwrt.org/openwrt/packages@12821 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
17
XOrg/lib/hippo-canvas/patches/010-use-python-config
Normal file
17
XOrg/lib/hippo-canvas/patches/010-use-python-config
Normal file
@ -0,0 +1,17 @@
|
||||
--- hippo-canvas-0.3.0.orig/configure 2008-09-30 22:18:23.000000000 +0200
|
||||
+++ hippo-canvas-0.3.0/configure 2008-09-30 22:41:16.000000000 +0200
|
||||
@@ -20486,10 +20486,14 @@
|
||||
echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
|
||||
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
||||
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
||||
+if test -x "$PYTHON-config"; then
|
||||
+PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
|
||||
+else
|
||||
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
||||
if test "$py_prefix" != "$py_exec_prefix"; then
|
||||
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
||||
fi
|
||||
+fi
|
||||
|
||||
save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
|
Reference in New Issue
Block a user