mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 07:43:32 +08:00
6c94ab3cfd
During installation, host-python and host-python3 run the freshly built python executable. This is done with a proper LD_LIBRARY_PATH to make sure it picks up the libpython in the build directory. However, the python binary has an RPATH pointing to the $(HOST_DIR)/usr/lib. Therefore, if libpython exists there, it will be used instead. If the install step is run in parallel, it is possible that libpython is already partially copied to $(HOST_DIR)/usr/lib when python is run. This gives an error like: python: error while loading shared libraries: $(HOST_DIR)/usr/lib/libpython3.4m.so.1.0: file too short The fix is simple: use RUNPATH instead of RPATH, which allows LD_LIBRARY_PATH to override RUNPATH. That way, the libpython in the build directory is always used. RUNPATH is enabled by passing --enable-new-dtags to the linker. Fixes e.g. http://autobuild.buildroot.net/results/2a6/2a62de3247ba5ad273f03d01e690a3eeb11aa7b4 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
||
---|---|---|
.. | ||
Config.in | ||
python3-001-remove-host-header-path.patch | ||
python3-002-properly-detect-if-python-build.patch | ||
python3-003-sysconfigdata-install-location.patch | ||
python3-004-old-stdlib-cache.patch | ||
python3-005-pyc-pyo-conditional.patch | ||
python3-006-cross-compile-getaddrinfo.patch | ||
python3-007-disable-extensions.patch | ||
python3-008-distutils-sysconfig-use-sysconfigdata.patch | ||
python3-009-distutils-use-python-sysroot.patch | ||
python3-010-no-termcap-host-path.patch | ||
python3-100-optional-test-modules.patch | ||
python3-101-optional-pydoc.patch | ||
python3-102-optional-2to3.patch | ||
python3-103-optional-sqlite.patch | ||
python3-104-optional-tk.patch | ||
python3-105-optional-curses.patch | ||
python3-106-optional-expat.patch | ||
python3-107-optional-codecs-cjk.patch | ||
python3-108-optional-nis.patch | ||
python3-109-optional-unicodedata.patch | ||
python3-110-optional-idle.patch | ||
python3.mk |