diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-04-16 15:07:51 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-04-16 15:24:05 -0400 |
commit | 017371b7445735133e24981661c3cd7cfae72a65 (patch) | |
tree | b1eec3ebdc3efc1e858f5f8000d93a94dd3bdf6b | |
parent | 4aa22502215d69a384af3ebf97542e3c949e1e85 (diff) | |
download | kutter-017371b7445735133e24981661c3cd7cfae72a65.tar.gz kutter-017371b7445735133e24981661c3cd7cfae72a65.tar.xz kutter-017371b7445735133e24981661c3cd7cfae72a65.zip |
Revert "Makefile: Don't disable gcc's use-linker-plugin option"
This reverts commit 8087200ffe2fbbe62265dd480ce8be67db8349eb.
The change can break the build on some versions of gcc.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | src/pru/Makefile | 1 |
2 files changed, 2 insertions, 4 deletions
@@ -1,6 +1,6 @@ # Klipper build system # -# Copyright (C) 2016-2025 Kevin O'Connor <kevin@koconnor.net> +# Copyright (C) 2016-2020 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. @@ -33,8 +33,7 @@ CFLAGS := -iquote $(OUT) -iquote src -iquote $(OUT)board-generic/ \ -std=gnu11 -O2 -MD -Wall \ -Wold-style-definition $(call cc-option,$(CC),-Wtype-limits,) \ -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks -CFLAGS += -flto=auto -fwhole-program -ggdb3 -CFLAGS += $(call cc-option,$(CC),-ffat-lto-objects,-fno-use-linker-plugin) +CFLAGS += -flto=auto -fwhole-program -fno-use-linker-plugin -ggdb3 OBJS_klipper.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y)) OBJS_klipper.elf += $(OUT)compile_time_request.o diff --git a/src/pru/Makefile b/src/pru/Makefile index c9624d1e..cd4a5b78 100644 --- a/src/pru/Makefile +++ b/src/pru/Makefile @@ -8,7 +8,6 @@ dirs-y += lib/pru_rpmsg CFLAGS += -Os -minrt -mmcu=am335x.pru1 CFLAGS += -Ilib/pru_rpmsg/include -Ilib/pru_rpmsg/include/am335x -CFLAGS += -fno-use-linker-plugin CFLAGS_klipper.elf := $(filter-out -mmcu=%, $(CFLAGS)) CFLAGS_klipper.elf += -Wl,-r -nostdlib -Wl,-T,src/pru/pru.lds |