source: issm/oecreview/Archive/27032-27229/ISSM-27150-27151.diff@ 27230

Last change on this file since 27230 was 27230, checked in by Mathieu Morlighem, 3 years ago

CHG: oecreview

File size: 3.9 KB
  • ../trunk-jpl/etc/environment.sh

     
    468468NETCDF_ROOT="${ISSM_EXT_DIR}/netcdf/install"
    469469if [ -d "${NETCDF_ROOT}" ]; then
    470470        export NETCDF_ROOT # Used in installation of GDAL, GMT
    471         path_append "${NETCDF_ROOT}/bin"
    472         cpath_append "${NETCDF_ROOT}/include"
    473         library_path_append "${NETCDF_ROOT}/lib"
    474         dyld_library_path_append "${NETCDF_ROOT}/lib"
    475         ld_library_path_append "${NETCDF_ROOT}/lib"
     471        path_prepend "${NETCDF_ROOT}/bin"
     472        cpath_prepend "${NETCDF_ROOT}/include"
     473        library_path_prepend "${NETCDF_ROOT}/lib"
     474        dyld_library_path_prepend "${NETCDF_ROOT}/lib"
     475        ld_library_path_prepend "${NETCDF_ROOT}/lib"
    476476fi
    477477
    478478NETCDF_CXX_ROOT="${ISSM_EXT_DIR}/netcdf-cxx/install"
     
    490490CURL_ROOT="${ISSM_EXT_DIR}/curl/install"
    491491if [ -d "${CURL_ROOT}" ]; then
    492492        export CURL_ROOT # Used in installation of NetCDF, GDAL, GMT
    493         ld_library_path_append "${CURL_ROOT}/lib"
    494         dyld_library_path_append "${CURL_ROOT}/lib"
     493        cpath_prepend "${CURL_ROOT}/include"
     494        ld_library_path_prepend "${CURL_ROOT}/lib"
     495        dyld_library_path_prepend "${CURL_ROOT}/lib"
    495496        path_append "${CURL_ROOT}/bin"
    496497fi
    497498
  • ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake

     
    147147        find_library (_found_lib_${_extralib}
    148148                NAMES ${_extralib}
    149149                HINTS
     150                ${NETCDF_ROOT}
     151                $ENV{NETCDF_ROOT}
    150152                ${HDF5_ROOT}
    151153                $ENV{HDF5_ROOT}
    152154                ${ZLIB_ROOT}
  • ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake

     
    129129
    130130# find all manually-supplied libs
    131131if (NETCDF_EXTRA_LIBS)
    132         # Ensure -l is precedeced by whitespace to not match
     132        # Ensure -l is preceded by whitespace to not match
    133133        # '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
    134134        string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_extra_lib_dashl ${NETCDF_EXTRA_LIBS})
    135135        string (REGEX REPLACE "(^| )-l" "" _netcdf_extra_shared_lib "${_netcdf_extra_lib_dashl}")
  • ../trunk-jpl/externalpackages/gmt/install-6-mac-static.sh

     
    1919LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
    2020LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
    2121
    22 GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6.0/static/cmake/modules/FindGDAL.cmake)
    23 NETCDF_EXTRA_LIBS="-lsqlite3 -lpthread -ldl -liconv" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6.0/static/cmake/modules/FindNETCDF.cmake)
     22GDAL_EXTRA_LIBS="-lc++" # `$GDAL_ROOT/bin/gdal-config --dep-libs` does not report need to link to libc++ (see also customized configuration file ./configs/6/static/cmake/modules/FindGDAL.cmake)
     23NETCDF_EXTRA_LIBS="-lsqlite3 -lpthread -ldl -liconv" # `$NETCDF_ROOT/bin/nc-config --libs` does not report certain dependencies of certain static libraries (see also customized configuration file ./configs/6/static/cmake/modules/FindNETCDF.cmake)
    2424
    2525# Environment
    2626#
Note: See TracBrowser for help on using the repository browser.