[Bug libstdc++/60348] -static-libstdc++ broken
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 27 15:04:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60348
--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Nach from comment #10)
> While you may be marking this as invalid, isn't there a serious issue here?
> Shouldn't -static-libstdc++ work without any special flags?
But it works, doesn't it? That you cannot transfer the binary to some
random system is because the compiler checks the features to use (like
GNU unique symbols) when building GCC.
That means it's a dependency on the dynamic linker of the system, not
on libstdc++. Your program can end up using GNU unique symbols, too,
which would then result in exactly the same issue.
More information about the Gcc-bugs
mailing list