修正debug编译失败的问题

This commit is contained in:
root 2023-03-20 12:40:35 +08:00
parent b412f051fe
commit e3167ac0ee

View File

@ -50,7 +50,7 @@ ASFLAGS := $(ARCH) -gdwarf-4 -flto $(INCLUDE) $(DEFINES)
LDFLAGS = $(ARCH) -gdwarf-4 -flto -specs=../arm11.specs -Wl,-Map,$(notdir $*.map) -nostartfiles
ifeq ($(strip $(NO_DEBUG)),)
CFLAGS := -fstack-protector-strong -fno-inline
CFLAGS := $(subst -flto,,$(CFLAGS)) -fstack-protector-strong -fno-inline
CXXFLAGS := $(subst -flto,,$(CXXFLAGS)) -fstack-protector-strong -fno-inline
LDFLAGS := $(subst -flto,,$(LDFLAGS)) -fstack-protector-strong -fno-inline -Wl,-wrap=malloc,-wrap=calloc,-wrap=free
endif