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:
3edeed3
)
python3: add LD and LDSHARED env vars to Build/Compile/Py3Mod
author
Alexandru Ardelean
<redacted>
Sun, 19 Oct 2014 07:21:03 +0000
(10:21 +0300)
committer
Alexandru Ardelean
<redacted>
Mon, 20 Oct 2014 16:13:32 +0000
(19:13 +0300)
Tells the host Python to use the target's linker.
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 ef5fbd6d7456f9555964b93f0fb89b8c32c599c5..f29cd7f0707a651a2dbc102641ed7f0f981a4401 100644
(file)
--- a/
lang/python3/files/python3-package.mk
+++ b/
lang/python3/files/python3-package.mk
@@
-74,9
+74,11
@@
define Build/Compile/Py3Mod
cd $(PKG_BUILD_DIR)/$(strip $(1)); \
CC="$(TARGET_CC)" \
CCSHARED="$(TARGET_CC) $(FPIC)" \
+ LD="$(TARGET_CC)" \
+ LDSHARED="$(TARGET_CC) -shared" \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON3_INC_DIR)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)
-lpython$(PYTHON3_VERSION)
" \
$(3) \
, \
./setup.py $(2) \
git clone https://git.99rst.org/PROJECT