aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2014-06-01 16:30:40 +0000
committerStefan Bühler <stbuehler@web.de>2014-06-01 16:30:40 +0000
commit935cad9f8e0b1a88a9d6ccae39aecd75524cc1dd (patch)
treecfa42e60ae8f0028dde14c7a0d2043901911eef9
parentd55a8fc778f5dc5c343e8c11098df1080c92bb23 (diff)
downloadspawn-fcgi-935cad9f8e0b1a88a9d6ccae39aecd75524cc1dd.tar.gz
spawn-fcgi-935cad9f8e0b1a88a9d6ccae39aecd75524cc1dd.zip
Add more flags to extra-warnings flags
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@62 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
-rw-r--r--NEWS1
-rw-r--r--configure.ac2
-rw-r--r--src/CMakeLists.txt2
3 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0b9e589..c9e559a 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ NEWS
* Restrict Unix socket file ownership by default to ug=rw
* Add example apparmor spawn-fcgi abstraction
* Use autoreconf instead of calling tools manually
+ * Add more flags to extra-warning flags
- 1.6.3 - 2009-09-23
* Fix unix socket mode change to work without specifying user/group for socket
diff --git a/configure.ac b/configure.ac
index f6ee611..f626104 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,7 +81,7 @@ AC_ARG_ENABLE(extra-warnings,
esac],[extrawarnings=false])
if test x$extrawarnings = xtrue; then
- CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security"
+ CFLAGS="${CFLAGS} -g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
fi
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile])
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e812f28..267a91c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -9,7 +9,7 @@ IF(CMAKE_COMPILER_IS_GNUCC)
OPTION(BUILD_EXTRA_WARNINGS "extra warnings")
IF(BUILD_EXTRA_WARNINGS)
- SET(WARN_FLAGS "-g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -Wformat-security")
+ SET(WARN_FLAGS "-g -O2 -g2 -Wall -Wmissing-declarations -Wdeclaration-after-statement -Wcast-align -Winline -Wsign-compare -Wnested-externs -Wpointer-arith -Wl,--as-needed -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security")
# -Wno-pointer-sign -Werror -Wbad-function-cast -Wmissing-prototypes
ELSE(BUILD_EXTRA_WARNINGS)
SET(WARN_FLAGS "")