------- Comment #7 from redi at gcc dot gnu dot org 2010-04-25 20:31 ------- (In reply to comment #5) > > It really was picking up the default libstdc++.so from the OS installation. I > used -R/path/to/4.5.0/libstdc++.so to fix this library path. But it turns out > that -L/path/to/4.5.0/libstdc++.so is also required in addition to this, > otherwise the default libstdc++.so is looked up by linker. > > Maybe this is a bug in linker, don't know.
No, that's the expected behaviour -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43882