python: export CC + CCSHARED env vars to cross-compile Python C extensions properly
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 18 Oct 2014 21:45:59 +0000 (00:45 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 19 Oct 2014 19:33:08 +0000 (22:33 +0300)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/files/python-package.mk

index dc30494feec690e4fb252cdba490b5f6ca892cff..8bf51ed95fb859c0505d35ade7a9d3a6d1f33a92 100644 (file)
@@ -72,6 +72,8 @@ endef
 define Build/Compile/PyMod
        $(call HostPython, \
                cd $(PKG_BUILD_DIR)/$(strip $(1)); \
+               CC="$(TARGET_CC)" \
+               CCSHARED="$(TARGET_CC) $(FPIC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
                CPPFLAGS="$(TARGET_CPPFLAGS)" \
                LDFLAGS="$(TARGET_LDFLAGS)" \