[oe-commits] [openembedded-core] 08/11: bitbake.conf: add --enable-new-dtags to linker

git at git.openembedded.org git at git.openembedded.org
Tue Jan 8 19:55:37 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 661d700ab7428b0ad982bfd2714cca134bad85a2
Author: Alexander Kanavin <alex.kanavin at gmail.com>
AuthorDate: Fri Dec 21 15:23:51 2018 +0100

    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 <alex.kanavin at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index e64ce6a..68700e9 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} \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list