diff --git a/arm11/Makefile b/arm11/Makefile index 431b1a4..6d56637 100644 --- a/arm11/Makefile +++ b/arm11/Makefile @@ -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