aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/rules.mk')
-rw-r--r--tmk_core/rules.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk
index 317f55e08..695fe0bad 100644
--- a/tmk_core/rules.mk
+++ b/tmk_core/rules.mk
@@ -161,6 +161,7 @@ SCANF_LIB =
161 161
162 162
163MATH_LIB = -lm 163MATH_LIB = -lm
164CREATE_MAP ?= yes
164 165
165 166
166#---------------- Linker Options ---------------- 167#---------------- Linker Options ----------------
@@ -171,7 +172,10 @@ MATH_LIB = -lm
171# Comennt out "--relax" option to avoid a error such: 172# Comennt out "--relax" option to avoid a error such:
172# (.vectors+0x30): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_12' 173# (.vectors+0x30): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_12'
173# 174#
174LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref 175
176ifeq ($(CREATE_MAP),yes)
177 LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref
178endif
175#LDFLAGS += -Wl,--relax 179#LDFLAGS += -Wl,--relax
176LDFLAGS += $(EXTMEMOPTS) 180LDFLAGS += $(EXTMEMOPTS)
177LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS)) 181LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS))