]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
Explicitely add hardening CFLAGS.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Feb 2013 19:36:30 +0000 (20:36 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 12 Feb 2013 19:36:30 +0000 (20:36 +0100)
macros/cflags.macro

index 5dee6f886f7f130da83d2f8ea1d8b6a0c188790d..a2c583c5bc7eb95a7b1848d71f1da98d9530c277 100644 (file)
@@ -1,6 +1,7 @@
 
 # Export CFLAGS + CXXFLAGS
-GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4
+GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC
+GLOBAL_CFLAGS  += -fstack-protector-all --param=ssp-buffer-size=4
 
 CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
 CFLAGS_x86_64   = -m64 -mtune=generic