Undefine FORTIFY_SOURCE before setting new value when enabled

This commit is contained in:
aristocratos 2024-01-11 10:39:39 +01:00
parent c649369efb
commit e936339038

View file

@ -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