From b02f562bbfb4c0383b533e64ccba24bb4dd0b231 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sun, 6 Jul 2025 08:22:36 +0100 Subject: [PATCH] stm32: Don't list format plugin on linker commandline. It causes an error, so filter it out, similar to other compile-only flags. Signed-off-by: Jeff Epler --- ports/stm32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index abca3a05f8..66c2171658 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -169,7 +169,7 @@ ifeq ($(LTO),1) CFLAGS += -flto=auto # LTO requires passing compiler flags to the linker as it will run the assembler. # To avoid risk of missing something relevant, pass all flags except for preprocessor args -LDFLAGS += $(filter-out -I%,$(filter-out -D%,$(CFLAGS))) +LDFLAGS += $(filter-out -fplugin%, $(filter-out -I%,$(filter-out -D%,$(CFLAGS)))) $(BUILD)/stm32_it.o $(BUILD)/pendsv.o: CFLAGS += -fno-lto endif