aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-07 17:02:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-15 14:02:04 -0400
commit233adfe66026a3968f50333d2a48c954356e9786 (patch)
tree95df2e3b1016619776f8d6f007c360d9d6fd640d /Makefile
parent450c14b28631455ea61eb15bebe5579268b228ef (diff)
downloadkutter-233adfe66026a3968f50333d2a48c954356e9786.tar.gz
kutter-233adfe66026a3968f50333d2a48c954356e9786.tar.xz
kutter-233adfe66026a3968f50333d2a48c954356e9786.zip
build: Add __visible to variables in compile_time_request.c
Add __visible to generated code in compile_time_request.c so that the main code can be compiled with -fwhole-program. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f993f55e..be5d3774 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -O2 -MD -g \
CFLAGS += -flto -fwhole-program -fno-use-linker-plugin
CFLAGS_klipper.o = $(CFLAGS) -Wl,-r -nostdlib
-CFLAGS_klipper.elf = $(CFLAGS) -Wl,--gc-sections -fno-whole-program
+CFLAGS_klipper.elf = $(CFLAGS) -Wl,--gc-sections
CPPFLAGS = -I$(OUT) -P -MD -MT $@