mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 14:40:36 +09:00
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>
This commit is contained in:
2
Makefile
2
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 $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user