From 0311e58bb645b8f5a2b96528d78edc90c811ed94 Mon Sep 17 00:00:00 2001 From: Jan Kardell Date: Mon, 8 Oct 2018 11:57:14 +0200 Subject: [PATCH] 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 --- lang/python/python/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 += \