Disable _FORTIFY_SOURCE when building with -O0
_FORTIFY_SOURCE requires at least -O2 optimization level. This may result in compilation warnings. Fix it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
parent
1e08a8990d
commit
9569315dea
4 changed files with 4 additions and 4 deletions
|
@ -188,7 +188,7 @@ CFLAGS += -Werror -DEAPOL_TEST
|
|||
endif
|
||||
|
||||
ifdef CONFIG_CODE_COVERAGE
|
||||
CFLAGS += -O0 -fprofile-arcs -ftest-coverage
|
||||
CFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE
|
||||
LIBS += -lgcov
|
||||
LIBS_c += -lgcov
|
||||
LIBS_p += -lgcov
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue