CXXFLAGS="$CXXFLAGS -m64"
CXXFLAGSG="$CXXFLAGSG -m64"
CXXFLAGSO="$CXXFLAGSO -m64"
- F77FLAGS="$F77FLAGS -m64"
- F77FLAGSG="$F77FLAGSG -m64"
- F77FLAGSO="$F77FLAGSO -m64"
LDFLAGS="$LDFLAGS -m64"
fi
*cygwin* )
F77FLAGSPIC=
;;
+
+ *apple-darwin*)
+ dnl Add -m64 to flags for the same TBB-related reason as
+ dnl above when setting CXXFLAGS
+ if test "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ; then
+ F77FLAGSG="$F77FLAGSG -m64"
+ F77FLAGSO="$F77FLAGSO -m64"
+ fi
+ ;;
+
* )
F77FLAGSPIC="-fPIC"
;;
CXXFLAGS="$CXXFLAGS -m64"
CXXFLAGSG="$CXXFLAGSG -m64"
CXXFLAGSO="$CXXFLAGSO -m64"
- F77FLAGS="$F77FLAGS -m64"
- F77FLAGSG="$F77FLAGSG -m64"
- F77FLAGSO="$F77FLAGSO -m64"
LDFLAGS="$LDFLAGS -m64"
fi
*cygwin* )
F77FLAGSPIC=
;;
+
+ *apple-darwin*)
+ if test "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ; then
+ F77FLAGSG="$F77FLAGSG -m64"
+ F77FLAGSO="$F77FLAGSO -m64"
+ fi
+ ;;
+
* )
F77FLAGSPIC="-fPIC"
;;
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams