------- Comment #5 from stephan dot bergmann at sun dot com 2007-06-18 06:54 ------- Re #3: <http://gcc.gnu.org/onlinedocs/libstdc++/install.html#usage> is not relevant here. That info is about how client code can find libstdc++.so. This issue is about how libstdc++.so can find the libraries it itself depends on.
Re #4: Not sure I understand you completely. If you move libstdc++.so and libgcc_s.so somewhere else but keep their relative locations intact (i.e., both in the same directory), RPATH=$ORIGIN in libstdc++.so still works to locate the matching libgcc_s.so. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32354