Commit ed3b72fb authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

build: enable _FORTIFY_SOURCE=2 for release builds



Change-Id: I61a0700c2ee6e22cdde6e6cc8c491a1e52043136
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 92a7dba6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@ ifeq ($(CONFIG_DEBUG), y)
COMMON_CFLAGS += -DDEBUG -O0
else
COMMON_CFLAGS += -DNDEBUG -O2
# Enable _FORTIFY_SOURCE checks - these only work when optimizations are enabled.
COMMON_CFLAGS += -D_FORTIFY_SOURCE=2
endif

CFLAGS   += $(COMMON_CFLAGS) -Wno-pointer-sign -std=gnu11