From 8e1e12dfd3f182965e66c3406e9608128927819a Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Thu, 15 Dec 2011 15:17:09 +0100 Subject: [PATCH] Ignore SMALL when using IAR compiler --- cpu/msp430/Makefile.msp430 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/msp430/Makefile.msp430 b/cpu/msp430/Makefile.msp430 index b907ea328..2aea9ad78 100644 --- a/cpu/msp430/Makefile.msp430 +++ b/cpu/msp430/Makefile.msp430 @@ -101,9 +101,11 @@ CFLAGS += $(CFLAGSNO) ### These flags can reduce the code size and RAM usage with up to 10% ifdef SMALL +ifndef IAR CFLAGS += -ffunction-sections # CFLAGS += -fdata-sections LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__ +endif # !IAR endif # SMALL