diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-12 22:51:59 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-12 22:51:59 +0100 |
commit | 17a781d8b25c371b5a723f139b95380eefad85b1 (patch) | |
tree | bd1f892d5b96d1ad0ce71dca16cb1f8439008039 /rbutil/libtools.make | |
parent | 3c6f3945dd5f00760945c229170acd51078f3d6a (diff) | |
download | rockbox-17a781d8b25c371b5a723f139b95380eefad85b1.tar.gz rockbox-17a781d8b25c371b5a723f139b95380eefad85b1.zip |
Move LDOPTS to the end of the linker call.
Command line order is important with newer gcc versions. mkzenboot extends
LDOPTS but the linker would ignore that since no object using it has been
mentioned on the command line. Moving it to the end should fix this.
Change-Id: I081e86fa88f95dba6077a50f2b4315bf3a805ae5
Diffstat (limited to 'rbutil/libtools.make')
-rw-r--r-- | rbutil/libtools.make | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make index 4037276104..defd320c17 100644 --- a/rbutil/libtools.make +++ b/rbutil/libtools.make | |||
@@ -106,9 +106,9 @@ $(BINARY): $(OBJS) $(EXTRADEPS) $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) | |||
106 | @echo LD $@ | 106 | @echo LD $@ |
107 | $(SILENT)$(call mkdir,$(dir $@)) | 107 | $(SILENT)$(call mkdir,$(dir $@)) |
108 | # EXTRADEPS need to be built into OBJDIR. | 108 | # EXTRADEPS need to be built into OBJDIR. |
109 | $(SILENT)$(CROSS)$(CC) $(ARCHFLAGS) $(CFLAGS) $(LDOPTS) -o $(BINARY) \ | 109 | $(SILENT)$(CROSS)$(CC) $(ARCHFLAGS) $(CFLAGS) -o $(BINARY) \ |
110 | $(OBJS) $(addprefix $(OBJDIR),$(EXTRADEPS)) \ | 110 | $(OBJS) $(addprefix $(OBJDIR),$(EXTRADEPS)) \ |
111 | $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) | 111 | $(addprefix $(OBJDIR),$(EXTRALIBOBJS)) $(LDOPTS) |
112 | 112 | ||
113 | # common rules | 113 | # common rules |
114 | $(OBJDIR)%.o: | 114 | $(OBJDIR)%.o: |