config-patches
[Top][All Lists]
Advanced

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

Re: Regarding my two patches against config.sub


From: Yann Droneaud
Subject: Re: Regarding my two patches against config.sub
Date: Sat, 02 Feb 2013 13:35:06 +0100

Le samedi 02 février 2013 à 21:05 +1100, Ben Elliston a écrit :
> On Sat, Feb 02, 2013 at 10:11:47AM +0100, Yann Droneaud wrote:
> 
> > The problem happens when I use `uname -p`-`uname -s` as --build=
> > argument of a configure script while cross-compiling.
> 
> So use --build=`uname -p`-`uname -s | tr A-Z a-z`. ;-)
> 
> In my experience, in 99% of cases, people do not compute the value of
> the --build argument.
> 

Which will trigger a warning in autoconf if you specify --host without
--build:

configure: WARNING: if you wanted to set the --build type, don't use
--host.
    If a cross compiler is detected then cross compile mode will be used

See: 14.1 Specifying target triplets

"For historical reasons, whenever you specify `--host', be sure to
specify `--build' too; this will be fixed in the future.  So, to enter
cross-compilation mode, use a command like this

So one may have to introduce a --build option with a string describing
the build system in order to workaround the warning.

Regards.

-- 
Yann Droneaud
OPTEYA





reply via email to

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