Python3: Fix host build on OpenSUSE
authorJan Kardell <jan.kardell@telliq.com>
Mon, 1 Oct 2018 17:13:44 +0000 (19:13 +0200)
committerJeffery To <jeffery.to@gmail.com>
Wed, 20 May 2020 09:28:02 +0000 (17:28 +0800)
commit618771c3a3305df9bc925fbf1ff0f43757262c69
tree614fb2ff457985d8eef28f9052ae3fef11043f5b
parent8a0298192143331bc0652694d84768955a6a128a
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>
(cherry picked from commit 6ade5a1e3adb189d062b707e2b8f731c9faab844)
lang/python/python3/Makefile