mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 10:24:31 +04:00
python: add LD and LDSHARED env vars to Build/Compile/PyMod
Tells the host Python to use the target's linker. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -74,9 +74,11 @@ define Build/Compile/PyMod
|
||||
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$(PYTHON_INC_DIR)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
|
||||
$(3) \
|
||||
, \
|
||||
./setup.py $(2) \
|
||||
|
||||
Reference in New Issue
Block a user