mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 10:38:21 +04:00
python3: 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:
committed by
Alexandru Ardelean
parent
5bf4866fd9
commit
f729ba98c5
@@ -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)" \
|
||||
|
||||
Reference in New Issue
Block a user