From f729ba98c5ba44523202e4bfe98c863830dd818c Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 19 Oct 2014 00:45:59 +0300 Subject: [PATCH] python3: export CC + CCSHARED env vars to cross-compile Python C extensions properly Signed-off-by: Alexandru Ardelean --- lang/python3/files/python3-package.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk index 7808d9ecd..d5028d002 100644 --- a/lang/python3/files/python3-package.mk +++ b/lang/python3/files/python3-package.mk @@ -72,6 +72,8 @@ endef define Build/Compile/Py3Mod $(call HostPython3, \ cd $(PKG_BUILD_DIR)/$(strip $(1)); \ + CC="$(TARGET_CC)" \ + CCSHARED="$(TARGET_CC) $(FPIC)" \ CFLAGS="$(TARGET_CFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \