Changeset 27804


Ignore:
Timestamp:
06/26/23 10:24:47 (21 months ago)
Author:
jdquinn
Message:

CHG: Updated install scripts to handle new Mac architectures

Location:
issm/trunk-jpl/externalpackages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/externalpackages/m1qn3/install.sh

    r27370 r27804  
    2626patch src/src/m1qn3.f patch/m1qn3.f.patch
    2727
    28 if [ -z "${FC-}" ]; then
    29         if which ifort >/dev/null; then
    30                 FC="ifort"
     28if which ifort >/dev/null; then
     29        FC="ifort"
     30        FFLAGS="-traceback -check all" # -O2 is default
     31else
     32        FC="gfortran"
     33        if [ `uname` == "Darwin" ]; then
     34                FFLAGS="-fcheck=all -arch $(uname -m)"
    3135        else
    32                 FC="gfortran"
    33                 if [ `uname` == "Darwin" ]; then
    34                         FC="gfortran -arch x86_64"
    35                 fi
     36                FFLAGS=""
    3637        fi
    3738fi
    38 echo "Using fortran compiler: $FC"
    3939
    4040# Compile and install
     
    4444LIB_EXT=a
    4545FC=$FC
     46FFLAGS=$FFLAGS
    4647install: libm1qn3.\$(LIB_EXT)
    4748        cp libm1qn3.\$(LIB_EXT) ${PREFIX}
     
    6364LIB_EXT=a
    6465FC=$FC
     66FFLAGS=$FFLAGS
    6567install: libddot.\$(LIB_EXT)
    6668        cp libddot.\$(LIB_EXT) ${PREFIX}
  • TabularUnified issm/trunk-jpl/externalpackages/semic/install.sh

    r26156 r27804  
    1616if which ifort >/dev/null; then
    1717        FC="ifort"
    18         FFLAGS="-traceback -check all" #-O2 is default
     18        FFLAGS="-traceback -check all" # -O2 is default
    1919else
    2020        FC="gfortran"
    2121        if [ `uname` == "Darwin" ]; then
    22                 FC="gfortran -arch x86_64"
    23                 FFLAGS="-fcheck=all"
     22                FFLAGS="-fcheck=all -arch $(uname -m)"
    2423        else
    2524                FFLAGS=""
Note: See TracChangeset for help on using the changeset viewer.