Re: Git configure/make does not honor ARFLAGS
- From
Jeff King <peff@peff.net>
- Date
- Sep 13, 2015, 10:17 UTC
- Message-ID
- <20150913101727.GB26562@sigill.intra.peff.net>
- In-Reply-To
- <CAH8yC8kV77h8cRA9Qo_1FYe9sv0zgsE7yKxaX+OtpRfj9+7wog@mail.gmail.com>
On Sun, Aug 30, 2015 at 05:34:59PM -0400, Jeffrey Walton wrote:
Show 8 quoted lines
> I'm working on an old OS X machine. I needed to perform: > > AR=libtool > ARFLAGS="-static -o" > ... > make configure > ./configure ... > make
Hrm. Your "$(AR)" is not really "ar" then, is it? It has been a long time since I played with libtool, but what is the reason that you are calling libtool and not "ar" in the first place. Is it that you do not have "ar" at all, and libtool performs some other procedure? If so, is there a more ar-compatible wrapper that can be used?
Show 8 quoted lines
> The Makefile might benefit from the following for users who need to > tweak things: > > ARFLAGS ?= rcs > ... > > $(QUIET_AR)$(RM) $@ && $(AR) $(ARFLAGS) $@ $^ > ...
Yeah, that does sound reasonable (even if one does not set $(AR) to something completely different, they might need slightly different flags).
Care to send a patch?
-Peff