From: Travis Cross Date: Sun, 9 Feb 2014 23:35:10 +0000 (+0000) Subject: Add some hardening to the debian build X-Git-Tag: v1.2.20~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=517c1b77ae2dd7029c57317d03fcb2a4f8f34e0e;p=thirdparty%2Ffreeswitch.git Add some hardening to the debian build --- 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)