From 056e565ab646f991ad7b3a9dd95f63ad50248f3b Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 19 Oct 2014 21:17:33 +0300 Subject: [PATCH] python3: 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 --- lang/python3/files/python3-package.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk index f29cd7f07..e2e71d3e0 100644 --- a/lang/python3/files/python3-package.mk +++ b/lang/python3/files/python3-package.mk @@ -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) \