Build arm9 with lto enabled

This commit is contained in:
Edoardo Lolletti 2024-04-26 14:58:25 +02:00
parent 4861ad5ab5
commit 53184bc63a

View File

@ -30,12 +30,12 @@ CFLAGS := -g -Wall -O2\
-ffast-math \ -ffast-math \
$(ARCH) $(ARCH)
CFLAGS += $(INCLUDE) -DARM9 CFLAGS += $(INCLUDE) -DARM9 -flto
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++23 CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++23
ASFLAGS := -g $(ARCH) -march=armv5te -mtune=arm946e-s 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 # any extra libraries we wish to link with the project