summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/lily58/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/lily58/rules.mk b/keyboards/lily58/rules.mk
index af25531ecd..fce62532f5 100644
--- a/keyboards/lily58/rules.mk
+++ b/keyboards/lily58/rules.mk
@@ -36,6 +36,11 @@ SRC += i2c.c
SRC += serial.c
SRC += ssd1306.c
+# A workaround until #7089 is merged.
+# serial.c must not be compiled with the -lto option.
+# The current LIB_SRC has a side effect with the -fno-lto option, so use it.
+LIB_SRC += serial.c
+
# if firmware size over limit, try this option
# CFLAGS += -flto