]> 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 13:32:48 +0000 (15:32 +0200)
commitfd749ca939b28425db90e0374f591aa85dfaa434
tree84b25edd843e548402e95bd6e4bde9a25c49b808
parentecaa076bd3f09df7f479253b1e7f48672a87c0f6
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