From 855ef2a53085f79a0603de7cd08a7ea8923e62c2 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Sun, 19 Oct 2014 10:21:03 +0300 Subject: [PATCH] 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 --- lang/python/files/python-package.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 273076387..35f5ac837 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -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) \