From 17a781d8b25c371b5a723f139b95380eefad85b1 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 12 Nov 2013 22:51:59 +0100 Subject: [PATCH] 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 --- rbutil/libtools.make | 4 ++-- 1 file 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)) @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: