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 <jepler@gmail.com>
This commit is contained in:
parent
ed22c8b729
commit
b02f562bbf
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ ifeq ($(LTO),1)
|
||||||
CFLAGS += -flto=auto
|
CFLAGS += -flto=auto
|
||||||
# LTO requires passing compiler flags to the linker as it will run the assembler.
|
# 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
|
# 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
|
$(BUILD)/stm32_it.o $(BUILD)/pendsv.o: CFLAGS += -fno-lto
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue