From d1c1eb5db25fdcffa7498a9f3f6205e7dd629223 Mon Sep 17 00:00:00 2001 From: "Geoffrey D. Bennett" Date: Fri, 21 Feb 2025 04:57:17 +1030 Subject: [PATCH] Undefine _FORTIFY_SOURCE before defining so GitHub can build the deb The GitHub build was failing with: : error: "_FORTIFY_SOURCE" redefined [-Werror] --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index aac1aa5..248b326 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,8 @@ DEPDIR := .deps DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d 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 += -Wno-error=deprecated-declarations