From: Jeffery To Date: Sat, 12 Mar 2016 16:50:12 +0000 (+0800) Subject: python: add rpath for host Python extension modules X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=11d1b213c28f382bf3d737a05c5375b5f590c2b6;p=feed%2Fpackages.git python: add rpath for host Python extension modules Signed-off-by: Jeffery To --- diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk index 0327f3ad23..8736d29ad2 100644 --- a/lang/python/files/python-host.mk +++ b/lang/python/files/python-host.mk @@ -44,7 +44,7 @@ define Build/Compile/HostPyMod LDSHARED="$(HOSTCC) -shared" \ CFLAGS="$(HOST_CFLAGS)" \ CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON_INC_DIR)" \ - LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON_VERSION)" \ + LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON_VERSION) -Wl$(comma)-rpath=$(STAGING_DIR)/host/lib" \ _PYTHON_HOST_PLATFORM=linux2 \ $(3) \ , \