From 3848f2094e4427565297f7634c42679f2f67f6d1 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Sat, 17 Dec 2011 20:42:51 +0800 Subject: [PATCH] make file relax --- libraries/AP_Common/Arduino.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libraries/AP_Common/Arduino.mk b/libraries/AP_Common/Arduino.mk index 3df9da1b40..e61a56835a 100644 --- a/libraries/AP_Common/Arduino.mk +++ b/libraries/AP_Common/Arduino.mk @@ -243,6 +243,12 @@ CFLAGS = -g -mmcu=$(MCU) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) $(DEPFLAGS) $( ASFLAGS = -g -mmcu=$(MCU) $(DEFINES) $(LISTOPTS) $(DEPFLAGS) $(ASOPTS) LDFLAGS = -g -mmcu=$(MCU) $(OPTFLAGS) -Wl,--relax,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP) +ifeq ($(BOARD),mega) + LDFLAGS = -g -mmcu=$(MCU) $(OPTFLAGS) -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP) +endif + + + LIBS = -lm SRCSUFFIXES = *.cpp *.c *.S