From: Jonathan Nieder <jrnieder@gmail.com>
To: Marat Radchenko <marat@slonopotamus.org>
Cc: GIT Mailing-list <git@vger.kernel.org>,
Felipe Contreras <felipe.contreras@gmail.com>
Subject: Re: [PATCH 04/12] Makefile: introduce CROSS_COMPILE variable
Date: Mon, 28 Apr 2014 09:25:36 -0700 [thread overview]
Message-ID: <20140428162536.GB13002@google.com> (raw)
In-Reply-To: <1398693097-24651-5-git-send-email-marat@slonopotamus.org>
Hi,
Marat Radchenko wrote:
> +# Define CROSS_COMPILE to specify the prefix used for all executables used
> +# during compilation. Only gcc and related bin-utils executables
> +# are prefixed with $(CROSS_COMPILE).
Please include an example.
# Define CROSS_COMPILE=foo- if your compiler and binary utilities
# are foo-cc, foo-ar, foo-strip, etc. More specific variables
# override this, so if you set CC=gcc CROSS_COMPILE=ia64-linux-gnu-
# then the compiler will be 'gcc', not 'ia64-linux-gnu-gcc'.
Otherwise unless I happen to know the convention from other packages I
would not know whether to include a trailing '-' in CROSS_COMPILE,
etc.
Does the effect of this setting depend on whether CC=gcc (i.e., is the
Makefile checking the value of CC and ignoring CROSS_COMPILE when it
is e.g. the Intel compiler)?
[...]
> -STRIP ?= strip
> +STRIP = $(CROSS_COMPILE)strip
Before, STRIP from the environment took precedence over STRIP from the
makefile. Switching to the more usual 'environment can't be trusted'
convention is a good change, but please mention it in the commit
message.
The rest looks good from a quick look.
Thanks,
Jonathan
next prev parent reply other threads:[~2014-04-28 16:26 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 13:51 [RFC/PATCH v1] Towards MinGW(-W64) cross-compilation Marat Radchenko
2014-04-28 13:51 ` [PATCH 01/12] MINGW: config.mak.uname: add explicit way to request MinGW-build Marat Radchenko
2014-04-28 16:12 ` Jonathan Nieder
2014-04-28 13:51 ` [PATCH 02/12] MINGW: compat/bswap.h: include stdint.h Marat Radchenko
2014-04-28 14:45 ` Erik Faye-Lund
2014-04-28 14:52 ` Marat Radchenko
2014-04-28 14:54 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 03/12] MINGW: compat/mingw.h: do not attempt to redefine lseek on mingw-w64 Marat Radchenko
2014-04-28 15:02 ` Erik Faye-Lund
2014-04-28 15:09 ` Marat Radchenko
2014-04-28 15:19 ` Erik Faye-Lund
2014-04-28 19:59 ` Torsten Bögershausen
2014-04-28 19:58 ` Felipe Contreras
2014-04-28 20:13 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 04/12] Makefile: introduce CROSS_COMPILE variable Marat Radchenko
2014-04-28 16:25 ` Jonathan Nieder [this message]
2014-04-28 17:34 ` Felipe Contreras
2014-04-28 20:40 ` Marat Radchenko
2014-04-28 20:45 ` Jonathan Nieder
2014-04-28 20:54 ` Marat Radchenko
2014-04-28 17:37 ` Felipe Contreras
2014-04-28 18:15 ` Marat Radchenko
2014-04-28 18:09 ` Felipe Contreras
2014-04-28 23:38 ` Jonathan Nieder
2014-04-28 23:54 ` Felipe Contreras
2014-04-28 13:51 ` [PATCH 05/12] MINGW: git-compat-util.h: use inttypes.h for printf macros Marat Radchenko
2014-04-28 14:53 ` Erik Faye-Lund
2014-04-28 15:00 ` Marat Radchenko
2014-04-28 15:07 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 06/12] MSVC: config.mak.uname: drop -D__USE_MINGW_ACCESS from compile definitions Marat Radchenko
2014-04-28 15:32 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 07/12] MINGW: config.mak.uname: reorganize MINGW settings Marat Radchenko
2014-04-28 14:58 ` Erik Faye-Lund
2014-04-28 15:04 ` Marat Radchenko
2014-04-28 15:17 ` Erik Faye-Lund
2014-04-28 16:42 ` Marat Radchenko
2014-04-28 13:51 ` [PATCH 08/12] MINGW: config.mak.uname allow using CURL for non-msysGit builds Marat Radchenko
2014-04-28 15:26 ` Erik Faye-Lund
2014-04-28 16:23 ` Marat Radchenko
2014-04-28 16:24 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 09/12] MINGW: config.mak.uname: drop -DNOGDI Marat Radchenko
2014-04-28 14:56 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 10/12] MINGW: config.mak.uname: drop USE_NED_ALLOCATOR Marat Radchenko
2014-04-28 15:23 ` Erik Faye-Lund
2014-04-28 16:30 ` Jonathan Nieder
2014-04-29 7:48 ` Marat Radchenko
2014-04-29 7:59 ` Felipe Contreras
2014-04-28 17:39 ` Felipe Contreras
2014-04-28 19:50 ` Philip Oakley
2014-04-28 13:51 ` [PATCH 11/12] MINGW: do not fail at redefining pid_t on MinGW-W64 Marat Radchenko
2014-04-28 15:24 ` Erik Faye-Lund
2014-04-28 13:51 ` [PATCH 12/12] MINGW: compat/mingw.h: drop fork() definition Marat Radchenko
2014-04-28 15:20 ` Erik Faye-Lund
2014-04-28 15:34 ` [RFC/PATCH v1] Towards MinGW(-W64) cross-compilation Erik Faye-Lund
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140428162536.GB13002@google.com \
--to=jrnieder@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=marat@slonopotamus.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.
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).