]>
Commit | Line | Data |
---|---|---|
91d1c8a9 MT |
1 | From 6216f7249be57583516131398d98eadc2ca1a08d Mon Sep 17 00:00:00 2001 |
2 | From: Michael Tremer <michael.tremer@ipfire.org> | |
3 | Date: Tue, 12 Feb 2013 20:36:30 +0100 | |
4 | Subject: [PATCH 14/17] Explicitely add hardening CFLAGS. | |
5 | ||
6 | --- | |
7 | macros/cflags.macro | 3 ++- | |
8 | 1 file changed, 2 insertions(+), 1 deletion(-) | |
9 | ||
10 | diff --git a/macros/cflags.macro b/macros/cflags.macro | |
11 | index 5dee6f8..a2c583c 100644 | |
12 | --- a/macros/cflags.macro | |
13 | +++ b/macros/cflags.macro | |
14 | @@ -1,6 +1,7 @@ | |
15 | ||
16 | # Export CFLAGS + CXXFLAGS | |
17 | -GLOBAL_CFLAGS = -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4 | |
18 | +GLOBAL_CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC | |
19 | +GLOBAL_CFLAGS += -fstack-protector-all --param=ssp-buffer-size=4 | |
20 | ||
21 | CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables | |
22 | CFLAGS_x86_64 = -m64 -mtune=generic | |
23 | -- | |
24 | 1.8.1.2 | |
25 |