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:
9bf2bd6
)
python: 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>
Sun, 19 Oct 2014 19:33:08 +0000
(22:33 +0300)
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/files/python-package.mk
patch
|
blob
|
history
diff --git
a/lang/python/files/python-package.mk
b/lang/python/files/python-package.mk
index dc30494feec690e4fb252cdba490b5f6ca892cff..8bf51ed95fb859c0505d35ade7a9d3a6d1f33a92 100644
(file)
--- a/
lang/python/files/python-package.mk
+++ b/
lang/python/files/python-package.mk
@@
-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)" \
git clone https://git.99rst.org/PROJECT