fix make DEBUG=1 (error seen with gcc 10.2.0)
MODIFY
GNUmakefile
GNUmakefile
@@ -62,8 +62,11 @@ ifneq "$(shell uname)" "Darwin"
endif
endif
# OS X does not like _FORTIFY_SOURCE=2
+ # _FORTIFY_SOURCE=2 does not like -O0
+ ifndef DEBUG
CFLAGS_OPT += -D_FORTIFY_SOURCE=2
endif
+endif
ifeq "$(shell uname)" "SunOS"
CFLAGS_OPT += -Wno-format-truncation
@@ -204,7 +207,10 @@ else
endif
ifneq "$(filter Linux GNU%,$(shell uname))" ""
+ # _FORTIFY_SOURCE=2 does not like -O0
+ ifndef DEBUG
override CFLAGS += -D_FORTIFY_SOURCE=2
+ endif
LDFLAGS += -ldl -lrt
endif

fix make DEBUG=1 (error seen with gcc 10.2.0)