This commit is contained in:
anod 2023-03-12 07:33:36 +08:00
parent 91c7a9320f
commit 818eda6549

View File

@ -42,9 +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 -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 := $(ARCH) -std=c++17 -O2 -gdwarf-4 -fno-rtti -fno-exceptions \
-mword-relocations -ffunction-sections -fno-math-errno -Wall -Wextra
CXXFLAGS += $(INCLUDE) $(DEFINES)
ASFLAGS := $(ARCH) -gdwarf-4 -flto $(INCLUDE) $(DEFINES)