--- MITgcm/tools/build_options/darwin_ppc_g77 2003/11/13 22:03:39 1.2 +++ MITgcm/tools/build_options/darwin_ppc_g77 2004/08/29 15:38:32 1.3 @@ -1,6 +1,6 @@ #!/bin/bash -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/darwin_ppc_g77,v 1.2 2003/11/13 22:03:39 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/darwin_ppc_g77,v 1.3 2004/08/29 15:38:32 edhill Exp $ # # tested on G4-PowerBook, 1GHz # cc-compiler is available only with the Apple Developer Tools, @@ -11,12 +11,20 @@ CPP='/usr/bin/cpp -traditional -P' FC=g77 LINK=g77 -FFLAGS='-Wimplicit -Wunused -Wuninitialized' -FOPTIM='-O3 -funroll-loops' -#FOPTIM='-O3 -malign-power -funroll-loops' NOOPTFLAGS='-O0' S64='$(TOOLSDIR)/set64bitConst.sh' #MAKEDEPEND='${TOOLSDIR}/xmakedepend' MAKEDEPEND=makedepend DEFINES='-DWORDLENGTH=4' + +# For IEEE, use the "-ffloat-store" option +if test "x$IEEE" = x ; then + FFLAGS='-Wimplicit -Wunused -Wuninitialized' + FOPTIM='-O3 -funroll-loops' +else + FFLAGS='-Wimplicit -Wunused -ffloat-store' + FOPTIM='-O0' +fi + +