klipper-fix-arm-firmware-build.patch 566 B

123456789101112
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -32,7 +32,7 @@ cc-option=$(shell if test -z "`$(1) $(2)
  4. CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -std=gnu11 -O2 -MD \
  5. -Wall -Wold-style-definition $(call cc-option,$(CC),-Wtype-limits,) \
  6. -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks
  7. -CFLAGS += -flto -fwhole-program -fno-use-linker-plugin -ggdb3
  8. +CFLAGS += -flto -fwhole-program -fno-use-linker-plugin -ggdb3 --specs=rdimon.specs
  9. OBJS_klipper.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y))
  10. OBJS_klipper.elf += $(OUT)compile_time_request.o