git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Jeffrey WaltonNext: Eric Sunshine
Message 2 of 12 in “Git configure/make does not honor ARFLAGS”
  1. Jeffrey WaltonAug 30, 2015
  2. Jeff KingSep 13, 2015
  3. Eric SunshineSep 13, 2015
  4. Jeffrey WaltonSep 13, 2015
  5. Jeff KingSep 14, 2015
  6. Junio C HamanoSep 14, 2015
  7. Jeff KingSep 14, 2015
  8. Junio C HamanoSep 14, 2015
  9. Eric SunshineSep 16, 2015
  10. Eric SunshineSep 16, 2015
  11. Jeffrey WaltonSep 14, 2015
  12. Junio C HamanoSep 15, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.