Browse Source

python3: add LD and LDSHARED env vars to Build/Compile/Py3Mod

Tells the host Python to use the target's linker.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 10 years ago
committed by Alexandru Ardelean
parent
commit
cc6423d57a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      lang/python3/files/python3-package.mk

+ 3
- 1
lang/python3/files/python3-package.mk View File

@ -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) \


Loading…
Cancel
Save