[Bug bootstrap/58476] In top-level configure --disable-static should change default for --with-boot-ldflags
ian at airs dot com
gcc-bugzilla@gcc.gnu.org
Fri Sep 20 17:42:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58476
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|bootstrap failure with Go |In top-level configure
|enabled |--disable-static should
| |change default for
| |--with-boot-ldflags
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
The default value for --with-boot-ldflags is "-static-libstdc++ -static-libgcc"
(set in the top level configure.ac file). When the g++ driver sees
-static-libstdc++, it puts -Bstatic before -lstdc++ and puts -Bdynamic after
it. So when you build with --disable-static, the effect is that go1 is linked
against some other libstdc++ that it finds on the system, not the one that was
just built. So it is not surprising that something went wrong.
I would say that if someone configures with --disable-static, we need to change
the default value of --with-boot-ldflags.
More information about the Gcc-bugs
mailing list