aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@53307013-940b-43fa-b11d-2c2b05dfe90d>2010-06-23 21:06:03 +0000
committereschnett <eschnett@53307013-940b-43fa-b11d-2c2b05dfe90d>2010-06-23 21:06:03 +0000
commit415190a6e2b4f22c6b33f8116f1c58cfd057053a (patch)
treee44bedbeb98cbbf0a2565a64ce2a5938a12fe03a
parent5b0ca90aa625d6753967933ec420ce02b9c6c7d3 (diff)
Use -qfixed with IBM compilers
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/BLAS/trunk@7 53307013-940b-43fa-b11d-2c2b05dfe90d
-rw-r--r--BLAS.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/BLAS.sh b/BLAS.sh
index 55910aa..b3fb626 100644
--- a/BLAS.sh
+++ b/BLAS.sh
@@ -61,7 +61,6 @@ if [ -z "${BLAS_DIR}" ]; then
# Clean up environment
unset LIBS
- unset MAKEFLAGS
(
exec >&2 # Redirect stdout to stderr
@@ -90,7 +89,10 @@ if [ -z "${BLAS_DIR}" ]; then
pushd build-${NAME}/${TARNAME}/BLAS/SRC
echo "BLAS: Building..."
- ${F77} ${F77FLAGS} -c *.f
+ if [ $(basename "$F77") = 'xlf90_r' -o $(basename "$F77") = 'xlf90' ]; then
+ FIXEDF77FLAGS=-qfixed
+ fi
+ ${F77} ${F77FLAGS} ${FIXEDF77FLAGS} -c *.f
${AR} ${ARFLAGS} libblas.a *.o
if [ ${USE_RANLIB} = 'yes' ]; then
${RANLIB} ${RANLIBFLAGS} libblas.a