← Back to team overview

dolfin team mailing list archive

Re: New release

 

On Tue, Oct 11, 2005 at 09:49:13AM -0500, Anders Logg wrote:

...

> Then the question is how to test for AMD 64. Is it enough to do
> 
> # Add '-fPIC' for AMD 64 bit system
> if test `uname -m` = x86_64; then
>     echo "adding -fPIC to compiler flags"
>     CXXFLAGS=$CXXFLAGS' -fPIC'
> fi
> 
> ?
> 
> /Anders
> 

Yes, this seems to be the way to do it. I.e.:

"The output of uname -m is x86_64 due to historical reasons as this
was the name of the first AMD specification."

http://www-uxsup.csx.cam.ac.uk/pub/doc/suse/suse9.0/adminguide-9.0/node14.html

So it's the same on all (Linux) AMD64 systems and it won't change.

  Johan



Follow ups

References