python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 19 Oct 2014 18:17:33 +0000 (21:17 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 19 Oct 2014 19:33:08 +0000 (22:33 +0300)
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>
lang/python/files/python-package.mk

index 35f5ac8378088d81754a44b3f6fa03d763a63696..f5ec5cee9ed216ebc5ef0633b2c4e5814241b549 100644 (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) \