Merge pull request #4767 from lrusak/python-fix

Python: fix cross compile to exclude host directories
This commit is contained in:
Stephan Raue 2016-02-24 09:45:24 +01:00
commit 6e85306909

View File

@ -65,14 +65,15 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_file_dev_ptc=no \
--with-system-ffi \
--with-system-expat"
pre_configure_host() {
export OPT="$HOST_CFLAGS"
}
make_host() {
make PYTHON_MODULES_INCLUDE="$HOST_INCDIR" \
PYTHON_MODULES_LIB="$HOST_LIBDIR" \
PYTHON_DISABLE_MODULES="$PY_DISABLED_MODULES"
sed -e "s|$ROOT/$TOOLCHAIN/include|$SYSROOT_PREFIX/usr/include|g" \
-e "s|$ROOT/$TOOLCHAIN/lib|$SYSROOT_PREFIX/usr/lib|g" \
-e "s|$ROOT/$TOOLCHAIN/bin/host-gcc|${TARGET_PREFIX}gcc|g" \
-i build/lib.linux-$(uname -m)-2.7/_sysconfigdata.py
}
makeinstall_host() {