building high-performance Octave
Ryan Schmidt
ryandesign at macports.org
Fri Jun 15 15:11:10 PDT 2012
On Jun 15, 2012, at 10:13, Pascal Dupuis wrote:
> variant hpc description {build mpif77 and mpif90 using
> -ftree-vectorize} conflicts gcc42
> gcc43 gcc44 gcc45 g95 {
> configure.args-delete --disable-mpi-f77 --disable-mpi-f90
> configure.cflags-delete -m32
> configure.cflags-append -O3 -m64 -ftree-vectorize
> configure.fflags-delete -m32
> configure.fflags-append -O3 -m64 -ftree-vectorize
> depends_lib-append port:gcc47
> }
> checking for C optimization flags... -DNDEBUG -pipe -O2 -O3 -m64
> -ftree-vectorize -m32 -finline-functions -fno-strict-aliasing
> checking for Interix environment... no
> checking for C ident string support... static const char
>
> It seems that openmpi configure script add itself this
> "-fno-strict-aliasing -m32" flag. How can I afterwards remove the -m32
> from CFLAGS ?
MacPorts adds -arch flags, or for compilers like FSF GCC that don't support them, equivalent -m flags, matching the build_arch or universal_archs.
Since you're on Leopard, the default build_arch is 32-bit (i386 or ppc depending on your computer) so MacPorts will add the -m32 flag.
If you want to build 64-bit, you should be setting build_arch to x86_64 or ppc64 depending on your computer which will make MacPorts add the -m64 flag.
You can set configure.build_arch in individual ports, or set build_arch globally in your macports.conf file.
More information about the macports-users
mailing list