]> git.ipfire.org Git - thirdparty/gcc.git/commit
mingw: Support building with older gcc versions
authorCostas Argyris <costas.argyris@gmail.com>
Wed, 12 Apr 2023 07:48:18 +0000 (08:48 +0100)
committerJonathan Yong <10walls@gmail.com>
Wed, 12 Apr 2023 14:35:33 +0000 (14:35 +0000)
commit3beeebd6934654f3453209730b98c7a1fd0305b6
treeee01b276eba9f13284d1880794371e7ba6cca8c1
parent56529056cb42baa382c40de7d239d02dbf72c94f
mingw: Support building with older gcc versions

The $@ argument to the compiler is causing
only a warning in some gcc versions but an
error in others. In any case, $@ was never
necessary so remove it completely, just like
the rules in x-mingw32 where the object file
gets named after the source file.

This fixes both warnings and errors about
sym-mingw32.o appearing in the command line
unnecessarily.

The -nostdlib flag is required along with -r
for older gcc versions that don't apply it
automatically with -r, resulting in main
functions erroneously entering a partial link.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/ChangeLog:

* config/i386/x-mingw32-utf8: Remove extrataneous $@
gcc/config/i386/x-mingw32-utf8