[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Exactly when does autoconf enter cross-compilation mode?

From: Nick Bowler
Subject: Re: Exactly when does autoconf enter cross-compilation mode?
Date: Sun, 23 Aug 2020 01:28:46 -0400

On 2020-08-22, <> wrote:
> is rather hard to follow in general, but also contains the following
> clear-cut statement: "Now, configure enters cross-compilation mode if
> and only if --host is passed."
> However, if I pass in my build architecture Autoconf 2.69 reports:
> $ ./configure --host=x86_64-linux-gnu

I imagine that the authors meant to write "only if", rather than
"if and only if" because indeed the statement as written is not true
(the manual immediately goes on to explain the actual behaviour).

Specifying --host alone *may* select cross compilation based on
heuristic (whether the compiler's output can be executed).  As the
manual explains this is fragile and is provided for compatibility
with historical behaviour.

By specifying both --host and --build and then cross compilation mode
is enabled whenever they are different.  This is the preferred method.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]