python3: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions
authorAlexandru Ardelean <redacted>
Sun, 19 Oct 2014 18:17:33 +0000 (21:17 +0300)
committerAlexandru Ardelean <redacted>
Mon, 20 Oct 2014 17:04:55 +0000 (20:04 +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 <redacted>
lang/python3/files/python3-package.mk

index f29cd7f0707a651a2dbc102641ed7f0f981a4401..e2e71d3e0926959b2f3d1e12401caba55b3f4c8c 100644 (file)
@@ -79,6 +79,7 @@ define Build/Compile/Py3Mod
                CFLAGS="$(TARGET_CFLAGS)" \
                CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON3_INC_DIR)" \
                LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON3_VERSION)" \
+               _PYTHON_HOST_PLATFORM="linux-$(ARCH)" \
                $(3) \
                , \
                ./setup.py $(2) \
git clone https://git.99rst.org/PROJECT