http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630
--- Comment #7 from Larry Baker <baker at usgs dot gov> 2012-09-22 01:13:54 UTC --- I'm kind of stumped at the moment to find an alternative method to pass down linker flags without using --with-host-libstdcxx. I tried setting CFLAGS_FOR_BUILD="-x c -x none" \ CXXFLAGS_FOR_BUILD="-x c++ -x none" \ LDFLAGS_FOR_BUILD="-x none" \ in the configure step. I also hacked Makefile.in to pass CXXFLAGS_FOR_BUILD in BASE_FLAGS_TO_PASS. The CFLAGS_FOR_BUILD="-x c -x none" show up in the gcc compile commands (the "make gcc" screen output), but I'm not sure it is used in every gcc command. The CXXFLAGS_FOR_BUILD="-x c++ -x none" and LDFLAGS_FOR_BUILD="-x none" never show up. I don't really care that much about static linking myself. But, I can understand why a vendor or package developer might want to have the capability.