mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Python3: Fix target sysconfig paths for include and lib folders
This commit is contained in:
parent
8d204cee1a
commit
ea60ca457e
@ -118,6 +118,13 @@ pre_configure_target() {
|
||||
export DISABLED_EXTENSIONS="${PKG_PY_DISABLED_MODULES}"
|
||||
}
|
||||
|
||||
post_make_target() {
|
||||
# fix sysconfig paths for cross compiling
|
||||
PKG_SYSCONFIG_FILE=$(find ${PKG_BUILD}/.${TARGET_NAME} -not -path '*/__pycache__/*' -name '_sysconfigdata__*.py')
|
||||
sed -e "s,\([\'|\ ]\)/usr/include,\1${SYSROOT_PREFIX}/usr/include,g" -i ${PKG_SYSCONFIG_FILE}
|
||||
sed -e "s,\([\'|\ ]\)/usr/lib,\1${SYSROOT_PREFIX}/usr/lib,g" -i ${PKG_SYSCONFIG_FILE}
|
||||
}
|
||||
|
||||
post_makeinstall_target() {
|
||||
ln -sf ${PKG_PYTHON_VERSION} ${INSTALL}/usr/bin/python
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user