git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git configure/make does not honor ARFLAGS
@ 2015-08-30 21:34 Jeffrey Walton
  2015-09-13 10:17 ` Jeff King
  0 siblings, 1 reply; 12+ messages in thread
From: Jeffrey Walton @ 2015-08-30 21:34 UTC (permalink / raw)
  To: git

I'm working on an old OS X machine. I needed to perform:

  AR=libtool
  ARFLAGS="-static -o"
  ...
  make configure
  ./configure ...
  make

However, it appears the Makefile does not respect ARFLAGS:

    $ grep -IR '$(AR)' *
    Makefile:    $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^
    Makefile:    $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^
    Makefile:    $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $^

It was fixed with a quick "sed":

    sed -i "" 's|$(AR) rcs|$(AR) $(ARFLAGS)|g' Makefile

The Makefile might benefit from the following for users who need to
tweak things:

    ARFLAGS ?= rcs
    ...

    $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^
    ...

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-09-16 19:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-30 21:34 Git configure/make does not honor ARFLAGS Jeffrey Walton
2015-09-13 10:17 ` Jeff King
2015-09-13 17:11   ` Eric Sunshine
2015-09-13 18:37     ` Jeffrey Walton
2015-09-14  4:30     ` Jeff King
2015-09-14  4:57       ` Junio C Hamano
2015-09-14  4:59         ` Jeff King
2015-09-14  5:52           ` Junio C Hamano
2015-09-16 19:38             ` Eric Sunshine
2015-09-16 19:45               ` Eric Sunshine
2015-09-14 23:14           ` Jeffrey Walton
2015-09-15  4:56             ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).