Makefile: disable stack protector in Ubuntu

This commit is contained in:
Zihao Yu 2021-08-27 11:24:07 +08:00
parent 30e5cd0c7e
commit a873515bde

View file

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