[Bug bootstrap/70519] genmatch fails to compile under gcc-5.2.0 - missing '-lstdc++' .

wilson at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 8 16:51:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70519

Jim Wilson <wilson at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at gcc dot gnu.org

--- Comment #11 from Jim Wilson <wilson at gcc dot gnu.org> ---
The -lstdc++ is added by lang_specific_driver in g++spec.c.  g++spec.o is
linked into xg++.  In the function lang_specific_driver, library is set to 1 if
the input file is not a header file, and then near the bottom a generate_option
call adds the -lstdc++ to the command line options.  You should debug
lang_specific_driver to see why it isn't working.


More information about the Gcc-bugs mailing list