From 59606cba6a6fc5c2e3546ac0a557b5de07166e63 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Thu, 21 Mar 2024 19:13:42 +0100 Subject: [PATCH] fix _FORTIFY_SOURCE redefined error --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ee4a2d9..8fef3b49 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ PRINT_UUIDS ?= no DIALECT = -std=c11 CFLAGS = $(DIALECT) -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 CFLAGS += -DMODES_READSB_VERSION=\"$(READSB_VERSION)\" -CFLAGS += -Wdate-time -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security +CFLAGS += -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security LIBS = -pthread -lpthread -lm -lrt -lzstd