Changeset 27159


Ignore:
Timestamp:
07/12/22 01:01:10 (3 years ago)
Author:
jdquinn
Message:

CHG: Need to split static version of Gmsh install script into macOS and Linux copies

Location:
issm/trunk-jpl
Files:
6 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/gmsh/install-4-linux-static.sh

    r27158 r27159  
    1414#
    1515VER="4.5.6"
     16
     17# Find libgfortran and libgcc so we do not have to hardcode them
     18#
     19# NOTE: For now, paths are hardcoded.
     20#
     21# TODO:
     22# - Move this to etc/environment.sh
     23# - Figure out how to find and grep for single result like we do with mdfind
     24#       under macOS.
     25#
     26LIBGFORTRAN="/usr/lib/gcc/x86_64-linux-gnu/8/libgfortran.a"
     27LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
     28LIBGCC="/usr/lib/gcc/x86_64-linux-gnu/8/libgcc.a"
    1629
    1730PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed
     
    5568        -DENABLE_OCC=0 \
    5669        -DENABLE_TOUCHBAR=0 \
    57         -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/libgfortran.a /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/libquadmath.a /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/gcc/x86_64-apple-darwin15/11/libgcc.a" \
     70        -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \
    5871        -DMETIS_ROOT="${METIS_ROOT}"
    5972
  • issm/trunk-jpl/externalpackages/gmsh/install-4-mac-static.sh

    r27157 r27159  
    1414#
    1515VER="4.5.6"
     16
     17# Find libgfortran and libgcc so we do not have to hardcode them
     18#
     19# Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
     20#
     21# TODO:
     22# - Move this to etc/environment.sh
     23# - Test if -static-libgfortran flag will avoid all of this.
     24# - Otherwise, refactor this to work with other gfortran installations.
     25#
     26LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | grep -n libgfortran.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
     27LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
     28LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
    1629
    1730PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" # Set to location where external package should be installed
     
    5568        -DENABLE_OCC=0 \
    5669        -DENABLE_TOUCHBAR=0 \
    57         -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/libgfortran.a /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/libquadmath.a /usr/local/Cellar/gcc/11.3.0/lib/gcc/11/gcc/x86_64-apple-darwin15/11/libgcc.a" \
     70        -DBLAS_LAPACK_LIBRARIES="-L${LAPACK_ROOT}/lib -lflapack -L${BLAS_ROOT}/lib -lfblas ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" \
    5871        -DMETIS_ROOT="${METIS_ROOT}"
    5972
  • issm/trunk-jpl/jenkins/pine_island-mac-binaries-matlab

    r27011 r27159  
    5656        gshhg           install.sh
    5757        gmt                     install-6-mac-static.sh
    58         gmsh            install-4-static.sh
     58        gmsh            install-4-mac-static.sh
    5959        triangle        install-mac-static.sh
    6060        chaco           install.sh
  • issm/trunk-jpl/jenkins/pine_island-mac-binaries-python-2

    r27011 r27159  
    5454        gshhg           install.sh
    5555        gmt                     install-6-mac-static.sh
    56         gmsh            install-4-static.sh
     56        gmsh            install-4-mac-static.sh
    5757        triangle        install-mac-static.sh
    5858        chaco           install.sh
  • issm/trunk-jpl/jenkins/pine_island-mac-binaries-python-3

    r27011 r27159  
    5555        gshhg           install.sh
    5656        gmt                     install-6-mac-static.sh
    57         gmsh            install-4-static.sh
     57        gmsh            install-4-mac-static.sh
    5858        triangle        install-mac-static.sh
    5959        chaco           install.sh
  • issm/trunk-jpl/jenkins/ross-debian_linux-binaries-matlab

    r26752 r27159  
    5454        gshhg           install.sh
    5555        gmt                     install-6-linux-static.sh
    56         gmsh            install-4-static.sh
     56        gmsh            install-4-linux-static.sh
    5757        triangle        install-linux-static.sh
    5858        chaco           install.sh
  • issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-2

    r26988 r27159  
    5454        gshhg           install.sh
    5555        gmt                     install-6-linux-static.sh
    56         gmsh            install-4-static.sh
     56        gmsh            install-4-linux-static.sh
    5757        triangle        install-linux-static.sh
    5858        chaco           install.sh
  • issm/trunk-jpl/jenkins/ross-debian_linux-binaries-python-3

    r26988 r27159  
    5555        gshhg           install.sh
    5656        gmt                     install-6-linux-static.sh
    57         gmsh            install-4-static.sh
     57        gmsh            install-4-linux-static.sh
    5858        triangle        install-linux-static.sh
    5959        chaco           install.sh
Note: See TracChangeset for help on using the changeset viewer.