From c8caf5888f837642a6aa3fd1b222d36dac2cc038 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Fri, 17 Oct 2025 19:34:05 +0200 Subject: [PATCH] Fix -flto parameter in Makefiles --- arm11/Makefile | 4 ++-- arm9/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arm11/Makefile b/arm11/Makefile index b52d531..2ef5cfe 100644 --- a/arm11/Makefile +++ b/arm11/Makefile @@ -10,8 +10,8 @@ INCDIRS := source INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") ASFLAGS += $(SUBARCH) $(INCLUDE) -CFLAGS += $(SUBARCH) $(INCLUDE) -flto -LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto +CFLAGS += $(SUBARCH) $(INCLUDE) -flto=auto +LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto=auto include ../Makefile.common include ../Makefile.build diff --git a/arm9/Makefile b/arm9/Makefile index ae0d9ee..df2eb69 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 -flto -LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto +CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto=auto +LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto=auto LIBS += -lm include ../Makefile.common