[Bug sanitizer/69839] cross-compiling programs w/-fsanitize=address fails: ld: warning: libstdc++.so.6, needed by libasan.so, not found (try using -rpath or -rpath-link)
joakim.tjernlund at infinera dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 24 16:58:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69839
--- Comment #4 from Joakim Tjernlund <joakim.tjernlund at infinera dot com> ---
(In reply to Jakub Jelinek from comment #3)
> That is the bug then. The linker doesn't search for DT_NEEDED shared
> libraries in the -L directories, but in the -rpath{,-link} ones, or in the
> standard directories (which for the sysroot would be
> /usr/powerpc-g2.20-linux-gnu/lib/ and
> /usr/powerpc-g2.20-linux-gnu/usr/lib/
The bug is in how Gentoo installed the cross compiler or in
binutils?
Strangely gcc/ld has no problem finding libasan.so which is in the same
directory as libstd++
More information about the Gcc-bugs
mailing list