aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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