summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-09-29 12:52:49 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-09-29 12:52:49 +0000
commit3e6fab860edd83ab05d1b8bd5b4d640ad8bf2561 (patch)
treebb7e59d4a647f7ec55c5e41dfceef74852a6e6de
parent8b55f9695954213f689e871725030ba2d58f6cfe (diff)
Use '-f90lib' linker flag to link all the necessary fortran runtime libs.
Disable warning messages by default (can be re-enabled with WARN=yes). git-svn-id: http://svn.cactuscode.org/flesh/trunk@3414 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/known-architectures/superux15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/make/known-architectures/superux b/lib/make/known-architectures/superux
index d42e9642..b68065aa 100644
--- a/lib/make/known-architectures/superux
+++ b/lib/make/known-architectures/superux
@@ -6,7 +6,7 @@
# @desc
# Known architecture stuff for the SX-5
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/superux,v 1.15 2003-09-26 15:35:54 tradke Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/superux,v 1.16 2003-09-29 12:52:49 tradke Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then
@@ -24,9 +24,20 @@ else
: ${F77_OPTIMISE_FLAGS='-C hopt -Wf,"-pvctl fullmsg loopcnt=100000000 vwork=stack -L fmtlist mrgmsg transform source"'}
: ${F90_OPTIMISE_FLAGS='$(F77_OPTIMISE_FLAGS)'}
+ # switch off warnings by default, reactivate if WARN=yes was set
+ : ${F77FLAGS='-w'}
+ : ${F90FLAGS='$(F77FLAGS)'}
+ if test "$WARN" = 'xyes' ; then
+ : ${F77_WARN_FLAGS='-Nw'}
+ : ${F90_WARN_FLAGS='-Nw'}
+ fi
: ${CXX_WARN_FLAGS=''}
- : ${LIBS='i90sx f90sxe v90sxe_sv i90sxe m90sxe u90sx m'}
+ if test "$LD" = "$CXX" -o "$LD" = "$F90" ; then
+ : ${LDFLAGS='-f90lib'}
+ else
+ : ${LIBS='i90sx f90sxe v90sxe_sv i90sxe m90sxe u90sx m'}
+ fi
# dependencies are a bit awkward to generate on the SX-5
if test "x$cross_compiling" = 'xyes' ; then