summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tmk_core/common.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/tmk_core/common.mk b/tmk_core/common.mk
index 3c9de33c99..c60a1c4052 100644
--- a/tmk_core/common.mk
+++ b/tmk_core/common.mk
@@ -161,6 +161,8 @@ ifeq ($(strip $(LTO_ENABLE)), yes)
EXTRAFLAGS += -flto
TMK_COMMON_DEFS += -DLTO_ENABLE
TMK_COMMON_DEFS += -DLINK_TIME_OPTIMIZATON_ENABLE
+else ifdef LINK_TIME_OPTIMIZATION_ENABLE
+ $(error The LINK_TIME_OPTIMIZATION_ENABLE flag has been renamed to LTO_ENABLE.)
endif
# Search Path