Skip to content

Commit

Permalink
Undefine FORTIFY_SOURCE before setting new value when enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Jan 11, 2024
1 parent c649369 commit e936339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e936339

Please sign in to comment.