diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-01-04 21:07:05 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-01-04 21:07:05 +0000 |
commit | d3586837fa9221a7ef104550b4c0aadc1a6ea77c (patch) | |
tree | 9e25efe160052fc4184304907b0009b5b2cf0267 /apps/plugins/reversi/Makefile | |
parent | e6e5697212943ccb35e94664b138f9289d2758b4 (diff) | |
download | rockbox-d3586837fa9221a7ef104550b4c0aadc1a6ea77c.tar.gz rockbox-d3586837fa9221a7ef104550b4c0aadc1a6ea77c.zip |
Stop wasting binary size + ram for several plugins. Plugins are supposed to be linked with --gc-sections, in case they use plugin library elements.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15997 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/reversi/Makefile')
-rw-r--r-- | apps/plugins/reversi/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/reversi/Makefile b/apps/plugins/reversi/Makefile index b008738335..97a042e0f7 100644 --- a/apps/plugins/reversi/Makefile +++ b/apps/plugins/reversi/Makefile | |||
@@ -39,7 +39,7 @@ all: $(OUTPUT) | |||
39 | ifndef SIMVER | 39 | ifndef SIMVER |
40 | $(OBJDIR)/reversi.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) | 40 | $(OBJDIR)/reversi.elf: $(OBJS) $(LINKFILE) $(BITMAPLIBS) |
41 | $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ | 41 | $(call PRINTS,LD $(@F))$(CC) $(GCCOPTS) -O -nostdlib -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ |
42 | $(LINKBITMAPS) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/reversi.map | 42 | $(LINKBITMAPS) -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/reversi.map |
43 | 43 | ||
44 | $(OUTPUT): $(OBJDIR)/reversi.elf | 44 | $(OUTPUT): $(OBJDIR)/reversi.elf |
45 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ | 45 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ |