aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index f5f758943..bbcfc1e4d 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -108,6 +108,10 @@ endif
108CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst) 108CFLAGS += -Wa,-adhlns=$(@:%.o=%.lst)
109CFLAGS += $(CSTANDARD) 109CFLAGS += $(CSTANDARD)
110 110
111# This fixes lots of keyboards linking errors but SHOULDN'T BE A FINAL SOLUTION
112# Fixing of multiple variable definitions must be made.
113CFLAGS += -fcommon
114
111#---------------- Compiler Options C++ ---------------- 115#---------------- Compiler Options C++ ----------------
112# -g*: generate debugging information 116# -g*: generate debugging information
113# -O*: optimization level 117# -O*: optimization level
@@ -124,6 +128,7 @@ CXXFLAGS += -O$(OPT)
124CXXFLAGS += -w 128CXXFLAGS += -w
125CXXFLAGS += -Wall 129CXXFLAGS += -Wall
126CXXFLAGS += -Wundef 130CXXFLAGS += -Wundef
131
127ifneq ($(strip $(ALLOW_WARNINGS)), yes) 132ifneq ($(strip $(ALLOW_WARNINGS)), yes)
128 CXXFLAGS += -Werror 133 CXXFLAGS += -Werror
129endif 134endif