aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-20 17:50:56 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-20 17:50:56 +0000
commit6e8642185a8db602628ea18e6d03d3f71e8be448 (patch)
tree07b30e7b4014e33ca26e3fed73601eca3fea088d /LUFA/Build
parentb2e49663f69ff4bea336ef3c9151f29025042cb9 (diff)
downloadlufa-6e8642185a8db602628ea18e6d03d3f71e8be448.tar.gz
lufa-6e8642185a8db602628ea18e6d03d3f71e8be448.tar.bz2
lufa-6e8642185a8db602628ea18e6d03d3f71e8be448.zip
Fix corrupted disassembly listing (LSS) files due to linker relaxations; pass -mrelax to the compiler to make it aware of, and able to compensate for, linker relaxations.
Diffstat (limited to 'LUFA/Build')
-rw-r--r--LUFA/Build/lufa_build.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/LUFA/Build/lufa_build.mk b/LUFA/Build/lufa_build.mk
index 2cc60ad7e..d99f8485b 100644
--- a/LUFA/Build/lufa_build.mk
+++ b/LUFA/Build/lufa_build.mk
@@ -192,6 +192,9 @@ BASE_CC_FLAGS += -DARCH=ARCH_$(ARCH) -DBOARD=BOARD_$(BOARD) -DF_USB=$(F_USB)UL
ifneq ($(F_CPU),)
BASE_CC_FLAGS += -DF_CPU=$(F_CPU)UL
endif
+ifeq ($(LINKER_RELAXATIONS), Y)
+BASE_CC_FLAGS += -mrelax
+endif
# Additional language specific compiler flags
BASE_C_FLAGS := -x c -O$(OPTIMIZATION) -std=$(C_STANDARD) -Wstrict-prototypes