Re: [PATCH 2/3] Makefile: Reorder linker flags in the git executable rule
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Oct 26, 2014, 17:45 UTC
- Message-ID
- <CAPig+cRUxXw4b2z1Gu4p6GKjnYrt_70h3kbR+jzbMP_jY24Sjg@mail.gmail.com>
- In-Reply-To
- <87mw8iag72.fsf@gmail.com>
On Sun, Oct 26, 2014 at 1:33 PM, David Michael <fedora.dm0@gmail.com> wrote:
> The XL C compiler can fail due to mixing library path and object
Can you explain in the commit message the actual nature of the failure so that readers can understand more precisely how this change helps?
Show 27 quoted lines
> file arguments, for example when linking git while building with > "gmake LDFLAGS=-L$prefix/lib". This moves the ALL_LDFLAGS variable > expansion in the git executable rule to be consistent with all the > other linking rules. > > Signed-off-by: David Michael <fedora.dm0@gmail.com> > --- > Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index fcd51ac..827006b 100644 > --- a/Makefile > +++ b/Makefile > @@ -1610,8 +1610,8 @@ git.sp git.s git.o: EXTRA_CPPFLAGS = \ > '-DGIT_INFO_PATH="$(infodir_relative_SQ)"' > > git$X: git.o GIT-LDFLAGS $(BUILTIN_OBJS) $(GITLIBS) > - $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ git.o \ > - $(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS) > + $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) git.o \ > + $(BUILTIN_OBJS) $(LIBS) > > help.sp help.s help.o: common-cmds.h > > -- > 1.9.3