修改Makefile

This commit is contained in:
anod 2023-03-12 07:30:45 +08:00
parent dbbef6e22a
commit 91c7a9320f

View File

@ -42,8 +42,8 @@ CFLAGS := $(ARCH) -std=c17 -O2 -gdwarf-4 -flto -mword-relocations \
-ffunction-sections -fno-math-errno -Wall -Wextra
CFLAGS += $(INCLUDE) $(DEFINES)
CXXFLAGS := $(ARCH) -std=c++17 -O2 -gdwarf-4 -flto -fno-rtti -fno-exceptions \
-mword-relocations -ffunction-sections -fno-math-errno -Wall -Wextra \
CXXFLAGS := $(ARCH) -std=c++17 -O2 -gdwarf-4 -fstack-protector-strong -fno-rtti -fno-exceptions \
-mword-relocations -ffunction-sections -fno-math-errno -Wall -Wextra -fno-inline\
-Wl,-wrap=malloc,-wrap=calloc,-wrap=free
CXXFLAGS += $(INCLUDE) $(DEFINES)