Don't define _FORTIFY_SOURCE on MinGW
authorChristian Biesinger <cbiesinger@google.com>
Wed, 18 Dec 2019 18:06:43 +0000 (12:06 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Thu, 9 Jan 2020 22:31:00 +0000 (16:31 -0600)
commit5f23a08201ed01570b34f5cff99a95fc7b9e2fdb
treef8e8e39d6b99b61de452b92abcaeb7dabfdad540
parent3061113bf336048d538241282c39baf684de31bf
Don't define _FORTIFY_SOURCE on MinGW

Recent MinGW versions require -lssp when using _FORTIFY_SOURCE, which
gdb does (in common-defs.h)
https://github.com/msys2/MINGW-packages/issues/5868#issuecomment-544107564

To avoid all the complications with checking for -lssp and making sure it's
linked statically, just don't define it.

gdb/ChangeLog:

2020-01-09  Christian Biesinger  <cbiesinger@google.com>

* gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.

Change-Id: Ide6870ab57198219a2ef78bc675768a789ca2b1d
gdb/ChangeLog
gdb/gdbsupport/common-defs.h