Changeset 25868


Ignore:
Timestamp:
12/14/20 13:29:34 (4 years ago)
Author:
jdquinn
Message:

BUG: Fix for cURL + GMT on macOS binaries

Location:
issm/trunk-jpl
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r25866 r25868  
    251251fi
    252252
    253 LAPACK_ROOT="${ISSM_EXT_DIR}/lapack/install"
     253# NOTE: Check *must* come before PETSc as we prefer packages installed via
     254#               PETSc
     255#
     256LAPACK_ROOT="${ISSM_DIR}/lapack/install"
    254257if [ -d "${LAPACK_ROOT}" ]; then
    255258        ld_library_path_append "${LAPACK_ROOT}/lib"
     259fi
     260
     261# NOTE: Check *must* come before PETSc as we prefer packages installed via
     262#               PETSc
     263#
     264ZLIB_ROOT="${ISSM_DIR}/zlib/install"
     265if [ -d "${ZLIB_ROOT}" ]; then
     266        export ZLIB_ROOT # Used in installation of NetCDF, GDAL, GMT
     267        ld_library_path_append "${ZLIB_ROOT}/lib"
    256268fi
    257269
     
    302314        if ls ${PETSC_ROOT}/lib/libz.* 1> /dev/null 2>&1; then
    303315                export ZLIB_ROOT="${PETSC_ROOT}" # Used in installation of NetCDF, GDAL
     316                ld_library_path_append "${PETSC_ROOT}/lib"
    304317        fi
    305318fi
     
    389402fi
    390403
    391 ZLIB_ROOT="${ISSM_EXT_DIR}/zlib/install"
    392 if [ -d "${ZLIB_ROOT}" ]; then
    393         export ZLIB_ROOT # Used in installation of NetCDF, GDAL, GMT
    394 fi
    395 
    396404SQLITE_ROOT="${ISSM_EXT_DIR}/sqlite/install"
    397405if [ -d "${SQLITE_ROOT}" ]; then
  • issm/trunk-jpl/externalpackages/curl/install-7-linux-static.sh

    r25860 r25868  
    3131        --disable-manual \
    3232        --disable-verbose \
     33        --disable-ldap \
     34        --disable-ldaps \
     35        --with-zlib="${ZLIB_ROOT}" \
    3336        --without-libidn2
    3437
  • issm/trunk-jpl/externalpackages/curl/install-7-linux-with_tests.sh

    r25860 r25868  
    3030        --disable-dependency-tracking \
    3131        --disable-manual \
    32         --disable-verbose
     32        --disable-verbose \
     33        --with-zlib="${ZLIB_ROOT}"
    3334
    3435# Compile and install
  • issm/trunk-jpl/externalpackages/curl/install-7-linux.sh

    r25860 r25868  
    3030        --disable-dependency-tracking \
    3131        --disable-manual \
    32         --disable-verbose
     32        --disable-verbose \
     33        --with-zlib="${ZLIB_ROOT}"
    3334
    3435# Compile and install
  • issm/trunk-jpl/externalpackages/curl/install-7-mac-static.sh

    r25860 r25868  
    3535        --disable-manual \
    3636        --disable-verbose \
     37        --disable-ldap \
     38        --disable-ldaps \
     39        --with-zlib="${ZLIB_ROOT}" \
    3740        --without-libidn2 \
    3841        --with-secure-transport
  • issm/trunk-jpl/externalpackages/curl/install-7-mac.sh

    r25860 r25868  
    3535        --disable-manual \
    3636        --disable-verbose \
     37        --with-zlib="${ZLIB_ROOT}" \
    3738        --with-secure-transport
    3839
  • issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/ConfigUser.static.cmake

    r25745 r25868  
    157157
    158158# Set location of CURL (can be root directory or path to header file) [auto]:
    159 set (CURL_ROOT "$ENV{ISSM_DIR}/externalpackages/curl/install")
     159#set (CURL_ROOT "curl_install_prefix")
    160160
    161161# Set location of GLIB component gthread [auto].  This is an optional (and
  • issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh

    r25856 r25868  
    2727export CC=mpicc
    2828export CURL_INCLUDE_DIRS="${CURL_ROOT}/include"
    29 export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;-framework CoreFoundation;-framework Security;-lldap;-lz"
     29export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;${ZLIB_ROOT}/lib/libz.a"
     30export LDFLAGS="-framework CoreFoundation -framework Security"
    3031export PREFIX="${ISSM_DIR}/externalpackages/gmt/install" # NOTE: Need to export this to be picked up by customized ConfigUser.cmake (see below). Set to location where external package should be installed.
    3132
Note: See TracChangeset for help on using the changeset viewer.