mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
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
This commit is contained in:
parent
3c6f3945dd
commit
17a781d8b2
1 changed files with 2 additions and 2 deletions
|
|
@ -106,9 +106,9 @@ $(BINARY): $(OBJS) $(EXTRADEPS) $(addprefix $(OBJDIR),$(EXTRALIBOBJS))
|
|||
@echo LD $@
|
||||
$(SILENT)$(call mkdir,$(dir $@))
|
||||
# EXTRADEPS need to be built into OBJDIR.
|
||||
$(SILENT)$(CROSS)$(CC) $(ARCHFLAGS) $(CFLAGS) $(LDOPTS) -o $(BINARY) \
|
||||
$(SILENT)$(CROSS)$(CC) $(ARCHFLAGS) $(CFLAGS) -o $(BINARY) \
|
||||
$(OBJS) $(addprefix $(OBJDIR),$(EXTRADEPS)) \
|
||||
$(addprefix $(OBJDIR),$(EXTRALIBOBJS))
|
||||
$(addprefix $(OBJDIR),$(EXTRALIBOBJS)) $(LDOPTS)
|
||||
|
||||
# common rules
|
||||
$(OBJDIR)%.o:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue