http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54820
--- Comment #19 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-10-23 21:14:42 UTC --- (In reply to comment #18) > Actually, g++ -static-libstdc++ foo.cpp produces a working executable, so that > wouldn't work. But looking at the output of ldd will work or readelf of it.