git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5bf4866
)
python3: export CC + CCSHARED env vars to cross-compile Python C extensions properly
author
Alexandru Ardelean
<redacted>
Sat, 18 Oct 2014 21:45:59 +0000
(
00:45
+0300)
committer
Alexandru 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
patch
|
blob
|
history
diff --git
a/lang/python3/files/python3-package.mk
b/lang/python3/files/python3-package.mk
index 7808d9ecd5892708566362ee616f5329491a508f..d5028d00203092df0468a166c36a22b79768c88d 100644
(file)
--- a/
lang/python3/files/python3-package.mk
+++ b/
lang/python3/files/python3-package.mk
@@
-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