http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56750
Bug #: 56750 Summary: static -lstdc++ logic bleeds into all subdirs Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: vap...@gentoo.org CC: ebotca...@gcc.gnu.org the recent PR54820 change that adds -static-libstdc++ -static-libgcc to the bootstrap flags ends up putting the LDFLAGS into all subdirs even unrelated to the stage1 bootstrapping for example, if you get the latest sourceware.org tree and try to build gdb, you'll find those flags now showing up in LDFLAGS $ make all-gdb ... gcc -g -O2 -static-libstdc++ \ -o gdb gdb.o ...