Skip to content

Commit

Permalink
Enable hardened builds by default
Browse files Browse the repository at this point in the history
  • Loading branch information
simondeziel authored and Jehreg committed Jan 27, 2014
1 parent 6657eb0 commit 6181d2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.inc
Expand Up @@ -193,15 +193,15 @@ BISONOSFLAGS=
#Example for a cross compile:
#USERCOMPILE?=-g ${PORTDEFINE} -I/usr/local/arm_tools/arm-elf/inc -L/usr/local/arm_tools/lib/gcc-lib
GCC_LINT ?= -DGCC_LINT
USERCOMPILE?=-g -O3 ${WERROR} $(GCC_LINT)
KLIPSCOMPILE=-O3 -DCONFIG_KLIPS_ALG -DDISABLE_UDP_CHECKSUM
USERCOMPILE?=-g -O2 -fPIE -pie -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 ${WERROR} $(GCC_LINT)
KLIPSCOMPILE=-O2 -fPIE -pie -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DCONFIG_KLIPS_ALG -DDISABLE_UDP_CHECKSUM
# Additional debugging for developers (warning: can crash openswan!)
#USERCOMPILE?=-g -DLEAK_DETECTIVE -lefence
# You can also run this before starting openswan on glibc systems:
#export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

# extra link flags
USERLINK?=-Wl,-z,relro
USERLINK?=-Wl,-z,relro,now

PORTINCLUDE?=

Expand Down

0 comments on commit 6181d2b

Please sign in to comment.