Undefine _FORTIFY_SOURCE before defining so GitHub can build the deb

The GitHub build was failing with:
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
This commit is contained in:
Geoffrey D. Bennett
2025-02-21 04:57:17 +10:30
parent 21cdfbbe1a
commit d1c1eb5db2

View File

@@ -13,7 +13,8 @@ DEPDIR := .deps
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
CFLAGS ?= -ggdb -fno-omit-frame-pointer -fPIE -O2 CFLAGS ?= -ggdb -fno-omit-frame-pointer -fPIE -O2
CFLAGS += -Wall -Werror -D_FORTIFY_SOURCE=3 CFLAGS += -Wall -Werror
CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
CFLAGS += -DVERSION=\"$(VERSION)\" CFLAGS += -DVERSION=\"$(VERSION)\"
CFLAGS += -Wno-error=deprecated-declarations CFLAGS += -Wno-error=deprecated-declarations