Python: Fix compile of host modules
authorJan Kardell <redacted>
Mon, 8 Oct 2018 09:57:14 +0000 (11:57 +0200)
committerJan Kardell <redacted>
Mon, 8 Oct 2018 10:22:39 +0000 (12:22 +0200)
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 <redacted>
lang/python/python/Makefile

index 5febe512d32d7ee05f32092797a0fa0cefb62d4b..766a57b979443191046786c09b873d91eb575bc5 100644 (file)
@@ -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 += \
git clone https://git.99rst.org/PROJECT