From 53184bc63a152f47ebe54df6b20ecea3f3cd5c99 Mon Sep 17 00:00:00 2001 From: Edoardo Lolletti Date: Fri, 26 Apr 2024 14:58:25 +0200 Subject: [PATCH] Build arm9 with lto enabled --- arm9/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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