From 661d700ab7428b0ad982bfd2714cca134bad85a2 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Fri, 21 Dec 2018 15:23:51 +0100 Subject: 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. Signed-off-by: Alexander Kanavin Signed-off-by: Ross Burton --- meta/conf/bitbake.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/conf') 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}" export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ -L${STAGING_BASE_LIBDIR_NATIVE} \ + -Wl,--enable-new-dtags \ -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \ -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ -- cgit 1.2.3-korg