/[MITgcm]/MITgcm/tools/build_options/linux_amd64_g77
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_amd64_g77

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8 by jmc, Mon May 16 19:03:37 2011 UTC revision 1.9 by jmc, Mon Sep 23 23:36:05 2013 UTC
# Line 3  Line 3 
3  #  $Header$  #  $Header$
4  #  $Name$  #  $Name$
5  #  #
6  # Build options for Suse 9 Opteron  # Build options for g77 compiler (compat-gcc-34-g77) on Linux AMD64 platform
7  # tested on Linux 2.4.21-102-smp (x86_64),  #  Tested on Linux 2.4.21-102-smp (x86_64),
8  #           Linux 2.6.26.8-57.fc8 (x86_64), Linux 2.6.27.9-159.fc10.x86_64  #         on Fedora Core  8, 10 (e.g.: dickens), 13 (e.g.: baudelaire),
9  #  #                        14, 15 (e.g.: acesgrid), 17, 19
10    
 FC=g77  
11  CC=gcc34  CC=gcc34
12    FC=g77
13  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'  DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'
 CPP='cpp  -traditional -P'  
 NOOPTFLAGS='-O0'  
14  EXTENDED_SRC_FLAG='-ffixed-line-length-132'  EXTENDED_SRC_FLAG='-ffixed-line-length-132'
15  GET_FC_VERSION="--version"  GET_FC_VERSION="--version"
16    
17    NOOPTFLAGS='-O0'
18    CFLAGS='-O0'
19    
20  #  For IEEE, use the "-ffloat-store" option  #  For IEEE, use the "-ffloat-store" option
21  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
22      FFLAGS='-Wimplicit -Wunused -Wuninitialized'      FFLAGS='-Wimplicit -Wunused -Wuninitialized'
# Line 25  else Line 26  else
26  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"  #   FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check"
27      FOPTIM='-O0'      FOPTIM='-O0'
28  fi  fi
29  # for big objects:  
30  FFLAGS="$FFLAGS -fPIC"  #- for big setups, compile & link with "-fPIC" or set memory-model to "medium":
31  CFLAGS="-O0 -fPIC"  #CFLAGS="$CFLAGS -fPIC"
32    #FFLAGS="$FFLAGS -fPIC"
33    #-  with FC 19, need to use this without -fPIC (which cancels -mcmodel option):
34     CFLAGS="$CFLAGS -mcmodel=medium"
35     FFLAGS="$FFLAGS -mcmodel=medium"
36    
37  if test -d /usr/include/netcdf-3 ; then  if test -d /usr/include/netcdf-3 ; then
38  #-- some FedoraCore standard location used to be "netcdf-3"  #-- some FedoraCore standard location used to be "netcdf-3"
# Line 68  elif test -d /usr/local/netcdf ; then Line 73  elif test -d /usr/local/netcdf ; then
73      INCLUDES='-I/usr/local/netcdf/include'      INCLUDES='-I/usr/local/netcdf/include'
74      LIBS='-L/usr/local/netcdf/lib'      LIBS='-L/usr/local/netcdf/lib'
75  fi  fi
   

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22