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 | ||
python-001-remove-host-header-path.patch | ||
python-002-fix-get-python-inc.patch | ||
python-003-properly-detect-if-python-build.patch | ||
python-004-sysconfigdata-install-location.patch | ||
python-005-pyc-pyo-conditional.patch | ||
python-006-cross-compile-getaddrinfo.patch | ||
python-007-disable-extensions.patch | ||
python-008-distutils-use-python-sysroot.patch | ||
python-009-no-termcap-host-path.patch | ||
python-010-fix-python-config.patch | ||
python-100-optional-test-modules.patch | ||
python-101-optional-pydoc.patch | ||
python-102-optional-2to3.patch | ||
python-103-optional-sqlite.patch | ||
python-104-optional-tk.patch | ||
python-105-optional-curses.patch | ||
python-106-optional-expat.patch | ||
python-107-optional-codecs-cjk.patch | ||
python-108-optional-nis.patch | ||
python-109-optional-unicodedata.patch | ||
python-110-optional-db.patch | ||
python-111-optional-ssl.patch | ||
python-112-optional-bzip2.patch | ||
python-113-optional-zlib.patch | ||
python.mk |