]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pakfire/patches/0014-Explicitely-add-hardening-CFLAGS.patch
pakfire: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0014-Explicitely-add-hardening-CFLAGS.patch
CommitLineData
91d1c8a9
MT
1From 6216f7249be57583516131398d98eadc2ca1a08d Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Tue, 12 Feb 2013 20:36:30 +0100
4Subject: [PATCH 14/17] Explicitely add hardening CFLAGS.
5
6---
7 macros/cflags.macro | 3 ++-
8 1 file changed, 2 insertions(+), 1 deletion(-)
9
10diff --git a/macros/cflags.macro b/macros/cflags.macro
11index 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--
241.8.1.2
25