Fix -flto parameter in Makefiles

This commit is contained in:
d0k3 2025-10-17 19:34:05 +02:00
parent e388028cc0
commit c8caf5888f
2 changed files with 4 additions and 4 deletions

View File

@ -10,8 +10,8 @@ INCDIRS := source
INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
ASFLAGS += $(SUBARCH) $(INCLUDE) ASFLAGS += $(SUBARCH) $(INCLUDE)
CFLAGS += $(SUBARCH) $(INCLUDE) -flto CFLAGS += $(SUBARCH) $(INCLUDE) -flto=auto
LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto=auto
include ../Makefile.common include ../Makefile.common
include ../Makefile.build include ../Makefile.build

View File

@ -10,8 +10,8 @@ INCDIRS := source source/common source/filesys source/crypto source/fatfs source
INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)") INCLUDE := $(foreach dir,$(INCDIRS),-I"$(shell pwd)/$(dir)")
ASFLAGS += $(SUBARCH) $(INCLUDE) ASFLAGS += $(SUBARCH) $(INCLUDE)
CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto CFLAGS += $(SUBARCH) $(INCLUDE) -fno-builtin-memcpy -flto=auto
LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto LDFLAGS += $(SUBARCH) -Wl,--use-blx,-Map,$(TARGET).map -flto=auto
LIBS += -lm LIBS += -lm
include ../Makefile.common include ../Makefile.common