Makefile: Adding extra compiler flags

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Otavio Pontes
2019-03-29 13:05:05 -07:00
parent b34390efec
commit 08765f32c4
+7 -2
View File
@@ -2,11 +2,12 @@ SUFFIXES= .rst
EXTRA_DIST = COPYING scripts/findstatic.pl swupd.bash
AM_CFLAGS = -fPIC -g -D_FORTIFY_SOURCE=2 -fno-common -std=gnu99 \
AM_CFLAGS = -fPIE -fPIC -g -D_FORTIFY_SOURCE=2 -fno-common -std=gnu99 \
-O$(OPTIMIZE) \
-Wall \
-Wextra \
-Wformat-security \
-Wformat \
-Wlogical-op \
-Wunreachable-code \
-Wswitch-default \
@@ -15,7 +16,11 @@ AM_CFLAGS = -fPIC -g -D_FORTIFY_SOURCE=2 -fno-common -std=gnu99 \
-Winline \
-Wundef \
-Wnested-externs \
-Wredundant-decls
-Wredundant-decls \
-fstack-protector-strong
AM_LDFLAGS = -z noexecstack -z relro -z now \
-pie
ACLOCAL_AMFLAGS = -I m4