python3: export CC + CCSHARED env vars to cross-compile Python C extensions properly
authorAlexandru Ardelean <redacted>
Sat, 18 Oct 2014 21:45:59 +0000 (00:45 +0300)
committerAlexandru Ardelean <redacted>
Mon, 20 Oct 2014 16:13:28 +0000 (19:13 +0300)
Signed-off-by: Alexandru Ardelean <redacted>
lang/python3/files/python3-package.mk

index 7808d9ecd5892708566362ee616f5329491a508f..d5028d00203092df0468a166c36a22b79768c88d 100644 (file)
@@ -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)" \
git clone https://git.99rst.org/PROJECT