summaryrefslogtreecommitdiffstats
path: root/package/python
diff options
context:
space:
mode:
Diffstat (limited to 'package/python')
-rw-r--r--package/python/python.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/python/python.mk b/package/python/python.mk
index 94765cbb84..216448e309 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -34,6 +34,12 @@ HOST_PYTHON_CONF_OPT += \
--disable-ssl \
--disable-pyo-build
+# Make sure that LD_LIBRARY_PATH overrides -rpath.
+# This is needed because libpython may be installed at the same time that
+# python is called.
+HOST_PYTHON_CONF_ENV += \
+ LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags"
+
# Building host python in parallel sometimes triggers a "Bus error"
# during the execution of "./python setup.py build" in the
# installation step. It is probably due to the installation of a
OpenPOWER on IntegriCloud