make: force _FORTIFY_SOURCE off in debug mode

_FORTIFY_SOURCE requires the optimizer to be enabled. Make sure to
force the former off when we disable the latter.

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
This commit is contained in:
Philippe Gerum 2021-09-11 11:39:31 +02:00
parent a234917781
commit aca56e0e89
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ else
endif endif
ifeq ($(D),1) ifeq ($(D),1)
DEBUG_CPPFLAGS= DEBUG_CPPFLAGS=-U_FORTIFY_SOURCE
DEBUG_CFLAGS=-g -O0 DEBUG_CFLAGS=-g -O0
else else
DEBUG_CPPFLAGS=-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 DEBUG_CPPFLAGS=-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2