Ignore:
Timestamp:
11/19/22 15:08:12 (2 years ago)
Author:
jdquinn
Message:

CHG: Updates to way we discover libgfortran in ext pkg install scripts; file name; compact unbind warning suppression.

File:
1 edited

Legend:

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

    r27202 r27397  
    2222# Find libgfortran and libgcc so we do not have to hardcode them
    2323#
    24 # Should retrieve a copy of gfortran that is compiled from source before returning one that is installed via package manager
    25 #
    2624# TODO:
    2725# - Move this to etc/environment.sh
     
    2927# - Otherwise, refactor this to work with other gfortran installations.
    3028#
    31 LIBGFORTRAN=$(mdfind -onlyin /usr -name libgfortran | egrep -n libgfortran.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
     29LIBGFORTRAN=$(find /usr -name libgfortran* 2>/dev/null | egrep -n libgfortran.a | sed "s/[0-9]*://g" | head -1)
    3230LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    33 LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | egrep -n libgcc.a | egrep -v i386 | sed "s/[0-9]*://g" | head -1)
     31LIBGCC=$(find ${LIBGFORTRAN_ROOT} -name libgcc* 2>/dev/null | egrep -n libgcc.a | sed "s/[0-9]*://g" | head -1)
    3432
    3533# Cleanup
Note: See TracChangeset for help on using the changeset viewer.