build: undefine _FORTIFY_SOURCE before setting it
Some compilers automatically define _FORTIFY_SOURCE to a different value, so undefine it before setting it on the compiler command line. Change-Id: Id662953bd4466b99d0fe9bd5bb96f9fc335ff9a8 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
0765bba91f
commit
7ab7984885
@ -73,7 +73,7 @@ COMMON_CFLAGS += -DDEBUG -O0
|
|||||||
else
|
else
|
||||||
COMMON_CFLAGS += -DNDEBUG -O2
|
COMMON_CFLAGS += -DNDEBUG -O2
|
||||||
# Enable _FORTIFY_SOURCE checks - these only work when optimizations are enabled.
|
# Enable _FORTIFY_SOURCE checks - these only work when optimizations are enabled.
|
||||||
COMMON_CFLAGS += -D_FORTIFY_SOURCE=2
|
COMMON_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_COVERAGE), y)
|
ifeq ($(CONFIG_COVERAGE), y)
|
||||||
|
Loading…
Reference in New Issue
Block a user