git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jeffrey Walton <noloader@gmail.com>
To: git@vger.kernel.org
Subject: Git configure/make does not honor ARFLAGS
Date: Sun, 30 Aug 2015 17:34:59 -0400	[thread overview]
Message-ID: <CAH8yC8kV77h8cRA9Qo_1FYe9sv0zgsE7yKxaX+OtpRfj9+7wog@mail.gmail.com> (raw)

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) $@ $^
    ...

             reply	other threads:[~2015-08-30 21:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-30 21:34 Jeffrey Walton [this message]
2015-09-13 10:17 ` Git configure/make does not honor ARFLAGS 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH8yC8kV77h8cRA9Qo_1FYe9sv0zgsE7yKxaX+OtpRfj9+7wog@mail.gmail.com \
    --to=noloader@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).