[Bug bootstrap/70519] genmatch fails to compile under gcc-5.2.0 - missing '-lstdc++' .
jason.vas.dias at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 6 16:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70519
--- Comment #7 from Jason Vas Dias <jason.vas.dias at gmail dot com> ---
So since I've produced a working Stage3 compiler in the build directory, './',
'./prev-gcc' should be the directory containing the Stage2 gcc build, and
it does in my case, with a config.log :
$ grep '^LDFLAGS=' prev-gcc/config.log
LDFLAGS='-static-libstdc++ -static-libgcc '
Now I think that this command should produce the output :
$ grep '^LDFLAGS=' prev-gcc/config.log
LDFLAGS='-static-libstdc++ -static-libgcc -lstdc++'
because we know that all the executables are produced with xg++
given the '-nostdlib' option, and all C++ executables should be
linked against libstdc++ .
My question is simply why isn't the missing '-lstdc++' there ?
Next question: where is the code that is meant to be adding it somehow ?
More information about the Gcc-bugs
mailing list