]> git.ipfire.org Git - thirdparty/sarg.git/commit
Fix _FORTIFY_SOURCE redefinition error
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 08:56:21 +0000 (10:56 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sun, 21 Sep 2014 08:56:21 +0000 (10:56 +0200)
commita5a828cc1a6ade1e030aceaa22ff55af4d2c12cf
treee9d00ffbf432a541181bb1a123861191ebbb47d9
parent46a9f65fe01e46627c386f2d8850e4ced94ddaea
Fix _FORTIFY_SOURCE redefinition error

Some systems define _FORTIFY_SOURCE by default. It conflicts with our use
of that macro when --enable-extraprotection is passed to the configuration
script.

The solution is to undefine it before redefining it with value 2.

If a higher _FORTIFY_LEVEL level ever appears, it will have to be used in
this program to benefit from the highest protection possible.
CMakeLists.txt
configure.in