Get more help from gcc, add -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2...
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 7 Feb 2014 08:00:58 +0000 (08:00 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Fri, 7 Feb 2014 08:00:58 +0000 (08:00 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@146 456724a4-4300-0410-8514-c89748c515a2

src/Makefile

index 52caa7519ac5aeff0a53871a66ab7083d1e47ae0..d436e2fec19681b2b80c0a436f32e9998d594941 100644 (file)
@@ -9,8 +9,8 @@
 #
 
 CPPFLAGS =
 #
 
 CPPFLAGS =
-CFLAGS ?= -ansi -O2 -fomit-frame-pointer
-override CFLAGS += -W -Wall -D_XOPEN_SOURCE -D_GNU_SOURCE
+CFLAGS ?= -ansi -O2 -fomit-frame-pointer -fstack-protector 
+override CFLAGS += -W -Wall -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE -D_GNU_SOURCE
 STATIC =
 MANDB  := s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@
 
 STATIC =
 MANDB  := s@^\('\\\\\"\)[^\*-]*-\*- coding: [^[:blank:]]\+ -\*-@\1@