Add -D_FORTIFY_SOURCE=2 to CFLAGS if possible.
authorMark Wielaard <mark@klomp.org>
Thu, 9 Feb 2017 20:09:54 +0000 (21:09 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 14 Feb 2017 09:39:51 +0000 (10:39 +0100)
commit01b994e3e6ccb8e79d04a8f6fd10719fac8ff5b8
tree1a2698b4b8dbdc6381a5e172929d047ab36d1ddd
parentf9971cb422df39adea7e8c7e22689b879e39c626
Add -D_FORTIFY_SOURCE=2 to CFLAGS if possible.

Some distros now add -D_FORTIFY_SOURCE=2 by default and we have missed
some issues in the past caught by it. Add it to CFLAGS if possible.
The configure check will make sure that it doesn't conflict with any
other CFLAGS already defined.

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
configure.ac