mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 12:34:35 +04:00
python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions
This mostly helps to avoid confusion when modules are cross-compiled. Otherwise build folders are named with the host's platform name. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -79,6 +79,7 @@ define Build/Compile/PyMod
|
|||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
|
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
|
||||||
|
_PYTHON_HOST_PLATFORM="linux-$(ARCH)" \
|
||||||
$(3) \
|
$(3) \
|
||||||
, \
|
, \
|
||||||
./setup.py $(2) \
|
./setup.py $(2) \
|
||||||
|
|||||||
Reference in New Issue
Block a user