aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/Makefile')
-rw-r--r--demos/ARM7-LPC214x-GCC/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/ARM7-LPC214x-GCC/Makefile b/demos/ARM7-LPC214x-GCC/Makefile
index c10ff9d94..8e1790bb2 100644
--- a/demos/ARM7-LPC214x-GCC/Makefile
+++ b/demos/ARM7-LPC214x-GCC/Makefile
@@ -111,10 +111,6 @@ OPT = -O2 -ggdb -fomit-frame-pointer -mabi=apcs-gnu
#OPT += -ffixed-r7
OPT += -falign-functions=16
-ifeq ($(LINK_GC),yes)
- OPT += -ffunction-sections -fdata-sections
-endif
-
# Define warning options here
WARN = -Wall -Wstrict-prototypes
@@ -122,6 +118,10 @@ WARN = -Wall -Wstrict-prototypes
# End of user defines
##############################################################################################
+ifeq ($(LINK_GC),yes)
+ OPT += -ffunction-sections -fdata-sections
+endif
+
INCDIR = $(patsubst %,-I%,$(DINCDIR) $(UINCDIR))
LIBDIR = $(patsubst %,-L%,$(DLIBDIR) $(ULIBDIR))
DEFS = $(DDEFS) $(UDEFS)