From: Jan Kardell Date: Mon, 8 Oct 2018 09:57:14 +0000 (+0200) Subject: Python: Fix compile of host modules X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0311e58bb645b8f5a2b96528d78edc90c811ed94;p=openwrt-packages.git Python: Fix compile of host modules Add -rpath linker option to host build, pointing to staging/hostpkh/lib. It's needed to find the correct host libs during runtime, without it the hosts libs may be used instaead, causing failures. Signed-off-by: Jan Kardell --- diff --git a/lang/python/python/Makefile b/lang/python/python/Makefile index 5febe512d..766a57b97 100644 --- a/lang/python/python/Makefile +++ b/lang/python/python/Makefile @@ -268,7 +268,7 @@ define PyPackage/python/filespec endef HOST_LDFLAGS += \ - $$$$(pkg-config --static --libs libcrypto libssl) + $$$$(pkg-config --static --libs libcrypto libssl) -Wl$(comma)-rpath=$(STAGING_DIR_HOSTPKG)/lib ifeq ($(HOST_OS),Linux) HOST_LDFLAGS += \