[petsc-dev] CFLAGS / LDFLAGS and cxx error

Jed Brown jed at 59A2.org
Wed Jul 28 12:29:36 CDT 2010

On Wed, 28 Jul 2010 10:15:19 -0700, Wesley Smith <wesley.hoke at gmail.com> wrote:
> I was trying to set the -arch flag for compilation and linking, but it
> seems to interfere somehow with the cxx compiler.  Even providing one
> explicitly doesn't seem to work.  Is there a way to force compilation
> as i386 instead of x86_64?
> bleeps:petsc-dev wesleysmith$ ./configure --with-cc=gcc
> --with-clanguage=cxx --download-boost --with-fc=0 --download-parmetis
> --with-shared --with-dynamic --download-mpich --with-sieve
> --CFLAGS="-arch i386" --LDFLAGS="-arch i386"

"-arch i386" is not a gcc option, try -march=i386 (or
e.g. -march=pentium4).


More information about the petsc-dev mailing list