]> code.ossystems Code Review - openembedded-core.git/commit
ld: -rpath must search under sysroot
authorAndy Ross <andy.ross@windriver.com>
Thu, 23 Aug 2012 17:32:31 +0000 (17:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Aug 2012 16:22:47 +0000 (17:22 +0100)
commitbccea580f1abb762d231f785a4e60c9cd368dcdf
treec0b272ccf1c1c226329c5d6b3b85b24fe2c7e18f
parentdd56ca611671233b8eec78aaa7e24b232654bc92
ld: -rpath must search under sysroot

The -rpath argument would search the host filesystem for libraries,
even when a sysroot was defined.  For cross toolchains with targets
compatible with the host architecture this can find incorrect
libraries.  Leave -rpath-link unmodified, as build systems in the wild
are already using this to point to host directories.

[YOCTO #2965]

Signed-off-by: Andy Ross <andy.ross@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils-2.22.inc
meta/recipes-devtools/binutils/binutils/rpath-sysroot.patch [new file with mode: 0644]