From 517c1b77ae2dd7029c57317d03fcb2a4f8f34e0e Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Sun, 9 Feb 2014 23:35:10 +0000 Subject: [PATCH] Add some hardening to the debian build --- debian/rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index ac938c68c0..be396c666c 100755 --- a/debian/rules +++ b/debian/rules @@ -7,10 +7,10 @@ export VERBOSE=1 FS_CC?=gcc FS_CXX?=g++ -FS_CPPFLAGS?= -FS_CFLAGS?=-g3 -O2 -fPIC +FS_CPPFLAGS?=-D_FORTIFY_SOURCE=2 +FS_CFLAGS?=-g3 -O2 -fPIC -fstack-protector --param=ssp-buffer-size=4 FS_CXXFLAGS?=$(FS_CFLAGS) -FS_LDFLAGS?= +FS_LDFLAGS?=-Wl,-z,relro export PATH?=/usr/lib/ccache:/usr/sbin:/usr/bin:/sbin:/bin export CC:=$(FS_CC) export CXX:=$(FS_CXX)