https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097
--- Comment #5 from Andrew Pinski ---
This is due to libtool. the make file passes the correct -rpath for linking
libstdc++.so to libtool but that does not pass it down to gcc.
/bin/bash ../libtool --tag CXX --mode=link
/home/apinski/src/loca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097
--- Comment #3 from Andrew Pinski ---
0x000f (RPATH) Library rpath:
[/home/apinski/src/local/objdir/../tools/lib/../lib64]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097
--- Comment #4 from Andrew Pinski ---
So basically someone uses -R while linking.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097
--- Comment #2 from Andrew Pinski ---
Those libraries should not be using -R. But I doubt they are. I suspect
something else is funny here.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78097
--- Comment #1 from Eric ---
oops of course
find /exe/gcc/4.9.4 -type l -name \*.so | xargs ldd | grep libgcc_s.so
should be read
find /exe/gcc/6.0.2 -type l -name \*.so | xargs ldd | grep libgcc_s.so