aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-06-11 08:58:31 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-06-17 12:45:07 -0400
commitae227d485cdac859b22d77da4072f870bce07740 (patch)
treedaa90a54aed17f0b949dc53af127962b9fe2c57d /src/stm32
parent433fcb6f249406c8b5e2f25d1e870809beeafb40 (diff)
downloadkutter-ae227d485cdac859b22d77da4072f870bce07740.tar.gz
kutter-ae227d485cdac859b22d77da4072f870bce07740.tar.xz
kutter-ae227d485cdac859b22d77da4072f870bce07740.zip
armcm_link: Fix build on recent arm gcc/newlibc versions
It seems recent arm gcc versions no longer build correctly using the "--specs=nano.specs --specs=nosys.specs" linker flags. Replace those linker flags with "-nostdlib -lgcc -lc_nano". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index 18af2e9d..5f4d3af5 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -31,7 +31,7 @@ CFLAGS-$(CONFIG_MACH_STM32H7) += -mcpu=cortex-m7 -Ilib/stm32h7/include
CFLAGS-$(CONFIG_MACH_STM32L4) += -mcpu=cortex-m4 -Ilib/stm32l4/include
CFLAGS += $(CFLAGS-y) -D$(MCU_UPPER) -mthumb -Ilib/cmsis-core -Ilib/fast-hash
-CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs
+CFLAGS_klipper.elf += -nostdlib -lgcc -lc_nano
CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld
$(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld