diff --git a/arm9/Makefile b/arm9/Makefile index 7110017..fa10bc2 100644 --- a/arm9/Makefile +++ b/arm9/Makefile @@ -30,12 +30,12 @@ CFLAGS := -g -Wall -O2\ -ffast-math \ $(ARCH) -CFLAGS += $(INCLUDE) -DARM9 +CFLAGS += $(INCLUDE) -DARM9 -flto CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++23 ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s -LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) +LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) -flto #--------------------------------------------------------------------------------- # any extra libraries we wish to link with the project