[CLN-list] Re: CLN on OS X

Richard B. Kreckel kreckel at ginac.de
Wed Jan 23 08:07:48 CET 2008


Hi!

Alexei Sheplyakov wrote:
> On Tue, Jan 22, 2008 at 02:26:20PM -0800, Ron Garret wrote:
>> How do you force CLN to build in 64-bit mode?
> 
> It's the default on my platform (GNU/Linux/amd64).
> 
>> None of the "obvious"  things I tried worked (e.g. 
>> ./configure --build=x86_64
> 
> This "obvious" way is plain wrong. First, --build means:
> 
> `--build=BUILD-TYPE'
>      the type of system on which the package is being configured and
>      compiled.
> 
> So, setting this is pointless, unless you also set --host.
> 
> Secondly, the value `x86_64' is wrong. It should be CPU-OS-VENDOR.
> On GNU/Linux/amd64 it's x86_64-linux-gnu (or something like that).
> 
>> CFLAGS=-m64  CXXFLAGS=-m64 ./configure
> 
> This one should work.

But it would fail to turn on optimization. So, better like:
CFLAGS="-m64 -O" CXXFLAGS="-m64 -O" ./configure

Regarding the __i386__ definition: There is code in m4/general.m4 that 
ought to correct the misleading uname -m output if kernelland is 64 bit 
and userland 32 bit. It's worked for others so far. Why does it fail for 
Ron?

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the CLN-list mailing list