diff options
-rw-r--r-- | build_test.mk | 1 | ||||
-rw-r--r-- | tmk_core/rules.mk | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/build_test.mk b/build_test.mk index 9f5d6e0af..ee15a4572 100644 --- a/build_test.mk +++ b/build_test.mk | |||
@@ -31,6 +31,7 @@ $(GTEST_OUTPUT)_DEFS := | |||
31 | $(GTEST_OUTPUT)_INC := $(GTEST_INC) $(GTEST_INTERNAL_INC) | 31 | $(GTEST_OUTPUT)_INC := $(GTEST_INC) $(GTEST_INTERNAL_INC) |
32 | 32 | ||
33 | LDFLAGS += -lstdc++ -lpthread -shared-libgcc | 33 | LDFLAGS += -lstdc++ -lpthread -shared-libgcc |
34 | CREATE_MAP := no | ||
34 | 35 | ||
35 | VPATH +=\ | 36 | VPATH +=\ |
36 | $(LIB_PATH)/googletest\ | 37 | $(LIB_PATH)/googletest\ |
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 | ||
163 | MATH_LIB = -lm | 163 | MATH_LIB = -lm |
164 | CREATE_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 | # |
174 | LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref | 175 | |
176 | ifeq ($(CREATE_MAP),yes) | ||
177 | LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref | ||
178 | endif | ||
175 | #LDFLAGS += -Wl,--relax | 179 | #LDFLAGS += -Wl,--relax |
176 | LDFLAGS += $(EXTMEMOPTS) | 180 | LDFLAGS += $(EXTMEMOPTS) |
177 | LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS)) | 181 | LDFLAGS += $(patsubst %,-L%,$(EXTRALIBDIRS)) |