mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
Merge pull request #4767 from lrusak/python-fix
Python: fix cross compile to exclude host directories
This commit is contained in:
commit
6e85306909
@ -65,14 +65,15 @@ PKG_CONFIGURE_OPTS_TARGET="ac_cv_file_dev_ptc=no \
|
|||||||
--with-system-ffi \
|
--with-system-ffi \
|
||||||
--with-system-expat"
|
--with-system-expat"
|
||||||
|
|
||||||
pre_configure_host() {
|
|
||||||
export OPT="$HOST_CFLAGS"
|
|
||||||
}
|
|
||||||
|
|
||||||
make_host() {
|
make_host() {
|
||||||
make PYTHON_MODULES_INCLUDE="$HOST_INCDIR" \
|
make PYTHON_MODULES_INCLUDE="$HOST_INCDIR" \
|
||||||
PYTHON_MODULES_LIB="$HOST_LIBDIR" \
|
PYTHON_MODULES_LIB="$HOST_LIBDIR" \
|
||||||
PYTHON_DISABLE_MODULES="$PY_DISABLED_MODULES"
|
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() {
|
makeinstall_host() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user