From e936339038dc77ded0b51ab3f3b1341808a85e4e Mon Sep 17 00:00:00 2001 From: aristocratos Date: Thu, 11 Jan 2024 10:39:39 +0100 Subject: Undefine FORTIFY_SOURCE before setting new value when enabled --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 36153a3..ed80899 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ endif FORTIFY_SOURCE ?= true ifeq ($(FORTIFY_SOURCE),true) - override ADDFLAGS += -D_FORTIFY_SOURCE=3 + override ADDFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 endif #? Compiler and Linker -- cgit v1.2.3