projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90f9ff7
)
undef _FORTIFY_SOURCE before defining it, in case it's already set
author
Gabor X Toth
<*@tg-x.net>
Tue, 27 May 2014 21:31:46 +0000
(21:31 +0000)
committer
Gabor X Toth
<*@tg-x.net>
Tue, 27 May 2014 21:31:46 +0000
(21:31 +0000)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 5a0f19d2b8c40014afe44237b08cd588ee20b6df..7a488dd6ebbfbb235e9567b0f1a74138819c83ad 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-251,7
+251,7
@@
AC_DEFINE_UNQUOTED([NEED_LIBGCRYPT_VERSION], "$NEED_LIBGCRYPT_VERSION", [require
AC_ARG_ENABLE(gcc-hardening,
AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
[if test x$enableval = xyes; then
- CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
+ CFLAGS="$CFLAGS -
U_FORTIFY_SOURCE -
D_FORTIFY_SOURCE=2 -fstack-protector-all"
CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
CFLAGS="$CFLAGS --param ssp-buffer-size=1"
LDFLAGS="$LDFLAGS -pie"