summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2019-07-09 13:07:35 -0400
committerFranklin Wei <git@fwei.tk>2019-07-09 13:07:43 -0400
commitb1f16371b0c729ac12ff2cd654cd34a6121fa02a (patch)
tree34e180bcb21b608466462559c792194eed65225a
parenta1353a3eff37deb0218af28d1195528f489b44ac (diff)
downloadrockbox-b1f16371b0c729ac12ff2cd654cd34a6121fa02a.tar.gz
rockbox-b1f16371b0c729ac12ff2cd654cd34a6121fa02a.tar.bz2
rockbox-b1f16371b0c729ac12ff2cd654cd34a6121fa02a.zip
sdl: fix build
-T flag is program-specific. Change-Id: I730a9c19be43e79c7ff4e6d4fb5b8f498f08515e
-rw-r--r--apps/plugins/sdl/sdl.make6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/sdl/sdl.make b/apps/plugins/sdl/sdl.make
index 871eac77d8..492284e333 100644
--- a/apps/plugins/sdl/sdl.make
+++ b/apps/plugins/sdl/sdl.make
@@ -36,7 +36,7 @@ ifndef APP_TYPE
ROCKS += $(SDL_OBJDIR)/duke3d.ovl $(SDL_OBJDIR)/wolf3d.ovl
DUKE3D_OUTLDS = $(SDL_OBJDIR)/duke3d.link
WOLF3D_OUTLDS = $(SDL_OBJDIR)/wolf3d.link
- SDL_OVLFLAGS = -T$(DUKE3D_OUTLDS) -Wl,--gc-sections -Wl,-Map,$(basename $@).map
+ SDL_OVLFLAGS = -Wl,--gc-sections -Wl,-Map,$(basename $@).map
else
### simulator
ROCKS += $(SDL_OBJDIR)/duke3d.rock
@@ -57,7 +57,7 @@ $(SDL_OBJDIR)/duke3d.ovl: $(SDL_OBJ) $(DUKE3D_OBJ) $(TLSFLIB) $(DUKE3D_OUTLDS)
$(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
$(filter %.o, $^) \
$(filter %.a, $+) \
- -lgcc $(SDL_OVLFLAGS)
+ -lgcc -T$(DUKE3D_OUTLDS) $(SDL_OVLFLAGS)
$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
# Wolf3D
@@ -74,7 +74,7 @@ $(SDL_OBJDIR)/wolf3d.ovl: $(SDL_OBJ) $(WOLF3D_OBJ) $(TLSFLIB) $(WOLF3D_OUTLDS)
$(SILENT)$(CC) $(PLUGINFLAGS) -o $(basename $@).elf \
$(filter %.o, $^) \
$(filter %.a, $+) \
- -lgcc $(SDL_OVLFLAGS)
+ -lgcc -T$(WOLF3D_OUTLDS) $(SDL_OVLFLAGS)
$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
# common