build: Use more secure flags

This commit is contained in:
Patrick Griffis
2016-02-27 12:36:25 -05:00
parent df36f88e88
commit 6706b23a0b
3 changed files with 146 additions and 0 deletions

View File

@@ -579,6 +579,9 @@ dnl *********************************************************************
CC_CHECK_FLAGS_APPEND([CFLAGS], [CFLAGS], [ \
-pipe \
-funsigned-char \
-fstack-protector-strong \
-fPIE \
-fPIC \
-Wall \
-Wextra \
-Wstrict-prototypes \
@@ -596,6 +599,12 @@ CC_CHECK_FLAGS_APPEND([CFLAGS], [CFLAGS], [ \
-Werror=pointer-arith \
])
AX_APPEND_LINK_FLAGS([ \
-pie \
-Wl,-z,relro \
-Wl,-z,now \
])
dnl *********************************************************************
dnl ** FUNCTIONS/LIBS/CFLAGS ********************************************
dnl *********************************************************************