Hi Dagobert,

> > And this code works fine. I verified this:
> >  - on a Solaris 10 machine:
> >      CC="cc -O", CC="gcc -O2"                       -> HOST_CPU="i386"
> >      CC="cc -xarch=generic64 -O", CC="gcc -m64 -O2" -> HOST_CPU="x86_64"
> >  - on a Solaris 11.4 machine:
> >      CC="gcc -m32 -O2" -> HOST_CPU="i386"
> >      CC="gcc -O2"      -> HOST_CPU="x86_64"
> > 
> > You must be specifying a --host triplet incorrectly in your build. Possibly
> > through a --host option when you run configure. Possibly through a 
> > --cache-file
> > that points to a file with a wrong setting.
> 
> Nope, neither —host nor —cache-file, but what differs is that I pass -m64 in 
> CFLAGS
> and not as part of CC.

I see.

I have submitted a patch to improve the Autoconf documentation on this topic:
<https://savannah.gnu.org/support/?110387>.

Bruno


Reply via email to