From: Alexandru Ardelean Date: Sun, 19 Oct 2014 18:17:33 +0000 (+0300) Subject: python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C extensions X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0141057a59d86cccc7550d0ccbb6f42ed12b41a0;p=feed%2Fpackages.git 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 --- diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 35f5ac8378..f5ec5cee9e 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -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) \