From: Jeff King Date: Sun, 13 Sep 2015 10:17:27 GMT Subject: Re: Git configure/make does not honor ARFLAGS Message-ID: <20150913101727.GB26562@sigill.intra.peff.net> In-Reply-To: On Sun, Aug 30, 2015 at 05:34:59PM -0400, Jeffrey Walton wrote: > 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? > 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