diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2018-12-21 15:23:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-11 10:39:08 +0000 |
commit | 69a4542fc4a3ea83b86940a791bb6c82fb35ce7a (patch) | |
tree | 778fd4201357b2c7f20b7dcd2ec852f35d80c84d /meta/conf | |
parent | c3a244b792ca89f28048c1fec1d3e05112872ee0 (diff) | |
download | poky-69a4542fc4a3ea83b86940a791bb6c82fb35ce7a.tar.gz |
bitbake.conf: add --enable-new-dtags to linker
Various versions of ld have different defaults for this
(even between e.g. Ubuntu 16.04 and 18.04). This has the
consequence of putting either RPATH or RUNPATH into the binary,
depending on the linker, which have different priorities
vs LD_LIBRARY_PATH env var. Also, I think, the original
executable binary is looked up for the tags when resolving
a dependency of a shared library when using RPATH, but not
RUNPATH.
Let's make this deterministic.
(From OE-Core rev: 661d700ab7428b0ad982bfd2714cca134bad85a2)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index e64ce6a6da..68700e9e7c 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -573,6 +573,7 @@ export TARGET_CXXFLAGS = "${TARGET_CFLAGS}" | |||
573 | 573 | ||
574 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ | 574 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ |
575 | -L${STAGING_BASE_LIBDIR_NATIVE} \ | 575 | -L${STAGING_BASE_LIBDIR_NATIVE} \ |
576 | -Wl,--enable-new-dtags \ | ||
576 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ | 577 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ |
577 | -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \ | 578 | -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \ |
578 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ | 579 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ |