patch-Makefile_inc 1.3 KB

1234567891011121314151617181920212223
  1. --- openswan-2.6.43.orig/Makefile.inc 2015-03-13 13:49:09.000000000 -0500
  2. +++ openswan-2.6.43/Makefile.inc 2015-05-01 04:11:06.067427001 -0500
  3. @@ -194,17 +194,17 @@ BISONOSFLAGS=
  4. #Example for a cross compile:
  5. #USERCOMPILE?=-g ${PORTDEFINE} -I/usr/local/arm_tools/arm-elf/inc -L/usr/local/arm_tools/lib/gcc-lib
  6. GCC_LINT ?= -DGCC_LINT
  7. -USERCOMPILE?=-g -O3 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 ${WERROR} $(GCC_LINT) ${USERCOMPILEEXTRA}
  8. +USERCOMPILE?=
  9. # on fedora/rhel
  10. #USERCOMPILE?=-g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIE -pie -DSUPPORT_BROKEN_ANDROID_ICS
  11. -KLIPSCOMPILE=-O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -DCONFIG_KLIPS_ALG -DDISABLE_UDP_CHECKSUM
  12. +KLIPSCOMPILE=-DCONFIG_KLIPS_ALG -DDISABLE_UDP_CHECKSUM
  13. # Additional debugging for developers (warning: can crash openswan!)
  14. #USERCOMPILE?=-g -DLEAK_DETECTIVE -lefence
  15. # You can also run this before starting openswan on glibc systems:
  16. #export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
  17. # extra link flags
  18. -USERLINK?=-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now ${USERLINKEXTRA}
  19. +USERLINK?=${USERLINKEXTRA}
  20. # on fedora/rhel
  21. #USERLINK=-g -pie