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:25:14 +0000 (17:25 +0100)
commitd05c3c6e69bbbe0c64b51166af6bca05abe3bac5
treedddeac64ed826616ef02220cff0f7a1bc2461e94
parent5ce9337d04c04dc6fea7ba81035abc0918fcdce6
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]

(From OE-Core rev: bccea580f1abb762d231f785a4e60c9cd368dcdf)

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]