From 11d1b213c28f382bf3d737a05c5375b5f590c2b6 Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sun, 13 Mar 2016 00:50:12 +0800 Subject: [PATCH] python: add rpath for host Python extension modules Signed-off-by: Jeffery To --- lang/python/files/python-host.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk index 0327f3ad2..8736d29ad 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) \ , \