From 5d32e60b512fc1e860db573bc3cba02a53e9a692 Mon Sep 17 00:00:00 2001 From: andreili Date: Thu, 31 Jul 2025 00:04:55 +0200 Subject: [PATCH] Fix build on Gentoo --- src/rp2040/Makefile | 2 +- src/stm32/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rp2040/Makefile b/src/rp2040/Makefile index 359d99c1..c4251cb7 100644 --- a/src/rp2040/Makefile +++ b/src/rp2040/Makefile @@ -63,7 +63,7 @@ rptarget-$(CONFIG_RPXXXX_HAVE_BOOTLOADER) := $(OUT)klipper.bin # Set klipper.elf linker rules target-y += $(rptarget-y) -CFLAGS_klipper.elf += -nostdlib -lgcc -lc_nano +CFLAGS_klipper.elf += -nostdlib -lgcc -lc_nano -lnosys CFLAGS_klipper.elf += -T $(OUT)src/rp2040/rpxxxx_link.ld OBJS_klipper.elf += $(stage2-y) $(OUT)klipper.elf: $(stage2-y) $(OUT)src/rp2040/rpxxxx_link.ld diff --git a/src/stm32/Makefile b/src/stm32/Makefile index 0ee71dcf..ad567f8e 100644 --- a/src/stm32/Makefile +++ b/src/stm32/Makefile @@ -32,7 +32,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 += -nostdlib -lgcc -lc_nano +CFLAGS_klipper.elf += -nostdlib -lgcc -lc_nano -lnosys CFLAGS_klipper.elf += -T $(OUT)src/generic/armcm_link.ld $(OUT)klipper.elf: $(OUT)src/generic/armcm_link.ld