From a873515bde26f4ee0826d5e0c7c4df700e6ebe77 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Fri, 27 Aug 2021 11:24:07 +0800 Subject: [PATCH] Makefile: disable stack protector in Ubuntu --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4bca0d3..e7fb86a 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ CFLAGS += -O2 -MMD -Wall -Werror $(INCFLAGS) \ -D__PLATFORM__=$(PLATFORM) -D__PLATFORM_$(shell echo $(PLATFORM) | tr a-z A-Z | tr - _) \ -DARCH_H=\"arch/$(ARCH).h\" \ -fno-asynchronous-unwind-tables -fno-builtin -fno-stack-protector \ - -Wno-main + -Wno-main -U_FORTIFY_SOURCE CXXFLAGS += $(CFLAGS) -ffreestanding -fno-rtti -fno-exceptions ASFLAGS += -MMD $(INCFLAGS)