The recognition of any library-related option in g++-spec.c causes the insertion of "-lstdc++". This causes link to be invoked when trying to generate PCH, which then fails. This bit me when trying to run the testsuite with /-static-libstdc++
The behavior here appears to differ from gcc where one can put "-static-libgcc" on the CL and the link phase is not invoked for PCH-generation. -- Summary: handling of library-related options by g++spec.c causes a failure when generating pch. Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: developer at sandoe-acoustics dot co dot uk GCC build triplet: *-*-* GCC host triplet: *-*-* GCC target triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41596