diff --git a/arm9/Makefile b/arm9/Makefile index 3cc75e7..f180deb 100644 --- a/arm9/Makefile +++ b/arm9/Makefile @@ -10,8 +10,8 @@ INCDIRS := source source/common source/filesys source/crypto source/fatfs source INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") ASFLAGS += $(SUBARCH) $(INCLUDE) -CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -LDFLAGS += $(SUBARCH) -Wl,-Map,$(TARGET).map +CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto +LDFLAGS += $(SUBARCH) -Wl,-Map,$(TARGET).map -flto include ../Makefile.common