summaryrefslogtreecommitdiff
path: root/lang/python/python3/Makefile
diff options
context:
space:
mode:
authorJan Kardell <jan.kardell@telliq.com>2018-10-01 19:13:44 +0200
committerJan Kardell <jan.kardell@telliq.com>2018-10-08 11:47:08 +0200
commit6ade5a1e3adb189d062b707e2b8f731c9faab844 (patch)
treeb8bc9a945081aa478ca6d0ab022a4e6a122a1beb /lang/python/python3/Makefile
parentdda7a55418acf14d0c3d5fd82ab1b0cc2946c05a (diff)
Python3: Fix host build on OpenSUSE
The linker option -rpath is required to find libs in staging_dir. Now it is included when building host modules. Without it the import test of the _ctypes and _uuid modules would fail. The _ctypes module uses libffi.so.6 from staging, but OpenSUSE LEAP 15 has libffi.so.7. It will also fail on LEAP 42.x, Fedora28 and 29 and future or old versions of Ubuntu. Fix needed in master and 18.06 branches. Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
Diffstat (limited to 'lang/python/python3/Makefile')
-rw-r--r--lang/python/python3/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index fcaf6b7ab..adb5d2019 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -264,7 +264,7 @@ define Py3Package/python3/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 += \