mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01: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
|
define Build/Compile/Py3Mod
|
||||||
$(call HostPython3, \
|
$(call HostPython3, \
|
||||||
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)" \
|
||||||
|
|||||||
Reference in New Issue
Block a user