--- MITgcm/tools/build_options/linux_amd64_gfortran 2013/09/20 00:15:03 1.21 +++ MITgcm/tools/build_options/linux_amd64_gfortran 2013/09/23 23:32:59 1.22 @@ -1,6 +1,6 @@ #!/bin/bash -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_amd64_gfortran,v 1.21 2013/09/20 00:15:03 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/linux_amd64_gfortran,v 1.22 2013/09/23 23:32:59 jmc Exp $ # $Name: $ # Build options for gfortran compiler (GNU) on Linux AMD64 platform @@ -69,11 +69,11 @@ #- Requires gfortran from 2006 onwards for -fconvert=big-endian FFLAGS="$FFLAGS -fconvert=big-endian -fimplicit-none" #- for big setups, compile & link with "-fPIC" or set memory-model to "medium": - CFLAGS="$CFLAGS -fPIC" - FFLAGS="$FFLAGS -fPIC" +#CFLAGS="$CFLAGS -fPIC" +#FFLAGS="$FFLAGS -fPIC" #- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): -#CFLAGS="$CFLAGS -mcmodel=medium" -#FFLAGS="$FFLAGS -mcmodel=medium" + CFLAGS="$CFLAGS -mcmodel=medium" + FFLAGS="$FFLAGS -mcmodel=medium" #- might want to use '-fdefault-real-8' for fizhi pkg: #FFLAGS="$FFLAGS -fdefault-real-8 -fdefault-double-8"