Add some hardening to the debian build

This commit is contained in:
Travis Cross 2014-02-09 23:35:10 +00:00
parent 1b78cee611
commit 517c1b77ae
1 changed files with 3 additions and 3 deletions

6
debian/rules vendored
View File

@ -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)