Subject: Re: [PATCH 14/14] MINGW: config.mak.uname: auto-detect MinGW build from compiler

From: Junio C Hamano <[email-masked]>
Date: Wed, 08 Oct 2014 12:26:52 -0700

Marat Radchenko <[email-masked]> writes:

> When crosscompiling, one cannot rely on `uname` from host system.

That may well be true, but is that limited to cross-compiling to
mingw?   Would it be generally true for any cross compilation,
wouldn't it?

What I am wondering is if it is a better solution to make it easier
to allow somebody who is cross compiling to express "Mr.  Makefile,
we know better than you and want you to do a MINGW build for us
without checking with `uname -?` yourself", i.e.

	$ make uname_O=MINGW uname_S=MINGW

which would hopefully allow cross-compilation into other
environments, not just MINGW.

>
> Signed-off-by: Marat Radchenko <[email-masked]>
> ---
>  config.mak.uname | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/config.mak.uname b/config.mak.uname
> index 9f7037e..182da50 100644
> --- a/config.mak.uname
> +++ b/config.mak.uname
> @@ -14,6 +14,11 @@ ifdef MSVC
>  	uname_O := Windows
>  endif
>  
> +ifneq (,$(findstring mingw,$(CC_MACH)))
> +	uname_S := MINGW
> +	uname_O := MINGW
> +endif
> +
>  # We choose to avoid "if .. else if .. else .. endif endif"
>  # because maintaining the nesting to match is a pain.  If
>  # we had "elif" things would have been much nicer...
> -- 
> 2.1.1
>
> -- 

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to [email-masked]
To unsubscribe from this group, send email to
[email-masked]
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Git for Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email-masked].
For more options, visit https://groups.google.com/d/optout.