python: export CC + CCSHARED env vars to cross-compile Python C extensions properly
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
9bf2bd6901
commit
9415753544
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ endef
|
||||||
define Build/Compile/PyMod
|
define Build/Compile/PyMod
|
||||||
$(call HostPython, \
|
$(call HostPython, \
|
||||||
cd $(PKG_BUILD_DIR)/$(strip $(1)); \
|
cd $(PKG_BUILD_DIR)/$(strip $(1)); \
|
||||||
|
CC="$(TARGET_CC)" \
|
||||||
|
CCSHARED="$(TARGET_CC) $(FPIC)" \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
|
|
Loading…
Reference in a new issue