Browse Source

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>
lilik-openwrt-22.03
Alexandru Ardelean 10 years ago
parent
commit
0141057a59
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lang/python/files/python-package.mk

+ 1
- 0
lang/python/files/python-package.mk View File

@ -79,6 +79,7 @@ define Build/Compile/PyMod
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
_PYTHON_HOST_PLATFORM="linux-$(ARCH)" \
$(3) \
, \
./setup.py $(2) \


Loading…
Cancel
Save