This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Feb 2016 21:02:27 +0000
- Subject: [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)
- Auto-submitted: auto-generated
- References: <bug-69839-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69839
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Likely a bug on the Gentoo side.
The linker handles differently libraries specified on the command line and
libraries that are needed by those shared libraries, but are not mentioned on
the command line. See binutils documentation.