http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48811
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-30 19:24:45 UTC --- Building like that is completely unsupported. If anything is worth fixing here it would be to strip any -std option from the library build flags, to ensure the library is built as it's supposed to be built.