Commit aca56e0e authored by Philippe Gerum's avatar Philippe Gerum
Browse files

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: default avatarPhilippe Gerum <rpm@xenomai.org>
parent a2349177
...@@ -52,7 +52,7 @@ else ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment