mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 16:44:31 +04:00
python: add rpath for host Python extension modules
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ define Build/Compile/HostPyMod
|
|||||||
LDSHARED="$(HOSTCC) -shared" \
|
LDSHARED="$(HOSTCC) -shared" \
|
||||||
CFLAGS="$(HOST_CFLAGS)" \
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||||
CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON_INC_DIR)" \
|
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 \
|
_PYTHON_HOST_PLATFORM=linux2 \
|
||||||
$(3) \
|
$(3) \
|
||||||
, \
|
, \
|
||||||
|
|||||||
Reference in New Issue
Block a user