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
RevLine 
[27230]1Index: ../trunk-jpl/etc/environment.sh
2===================================================================
3--- ../trunk-jpl/etc/environment.sh (revision 27150)
4+++ ../trunk-jpl/etc/environment.sh (revision 27151)
5@@ -468,11 +468,11 @@
6 NETCDF_ROOT="${ISSM_EXT_DIR}/netcdf/install"
7 if [ -d "${NETCDF_ROOT}" ]; then
8 export NETCDF_ROOT # Used in installation of GDAL, GMT
9- path_append "${NETCDF_ROOT}/bin"
10- cpath_append "${NETCDF_ROOT}/include"
11- library_path_append "${NETCDF_ROOT}/lib"
12- dyld_library_path_append "${NETCDF_ROOT}/lib"
13- ld_library_path_append "${NETCDF_ROOT}/lib"
14+ path_prepend "${NETCDF_ROOT}/bin"
15+ cpath_prepend "${NETCDF_ROOT}/include"
16+ library_path_prepend "${NETCDF_ROOT}/lib"
17+ dyld_library_path_prepend "${NETCDF_ROOT}/lib"
18+ ld_library_path_prepend "${NETCDF_ROOT}/lib"
19 fi
20
21 NETCDF_CXX_ROOT="${ISSM_EXT_DIR}/netcdf-cxx/install"
22@@ -490,8 +490,9 @@
23 CURL_ROOT="${ISSM_EXT_DIR}/curl/install"
24 if [ -d "${CURL_ROOT}" ]; then
25 export CURL_ROOT # Used in installation of NetCDF, GDAL, GMT
26- ld_library_path_append "${CURL_ROOT}/lib"
27- dyld_library_path_append "${CURL_ROOT}/lib"
28+ cpath_prepend "${CURL_ROOT}/include"
29+ ld_library_path_prepend "${CURL_ROOT}/lib"
30+ dyld_library_path_prepend "${CURL_ROOT}/lib"
31 path_append "${CURL_ROOT}/bin"
32 fi
33
34Index: ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake
35===================================================================
36--- ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake (revision 27150)
37+++ ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake (revision 27151)
38@@ -147,6 +147,8 @@
39 find_library (_found_lib_${_extralib}
40 NAMES ${_extralib}
41 HINTS
42+ ${NETCDF_ROOT}
43+ $ENV{NETCDF_ROOT}
44 ${HDF5_ROOT}
45 $ENV{HDF5_ROOT}
46 ${ZLIB_ROOT}
47Index: ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake
48===================================================================
49--- ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake (revision 27150)
50+++ ../trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake (revision 27151)
51@@ -129,7 +129,7 @@
52
53 # find all manually-supplied libs
54 if (NETCDF_EXTRA_LIBS)
55- # Ensure -l is precedeced by whitespace to not match
56+ # Ensure -l is preceded by whitespace to not match
57 # '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
58 string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_extra_lib_dashl ${NETCDF_EXTRA_LIBS})
59 string (REGEX REPLACE "(^| )-l" "" _netcdf_extra_shared_lib "${_netcdf_extra_lib_dashl}")
60Index: ../trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
61===================================================================
62--- ../trunk-jpl/externalpackages/gmt/install-6-mac-static.sh (revision 27150)
63+++ ../trunk-jpl/externalpackages/gmt/install-6-mac-static.sh (revision 27151)
64@@ -19,8 +19,8 @@
65 LIBGFORTRAN_ROOT=${LIBGFORTRAN%/*}
66 LIBGCC=$(mdfind -onlyin ${LIBGFORTRAN_ROOT} -name libgcc | grep -n libgcc.a | grep -v i386 | sed "s/[0-9]*://g" | head -1)
67
68-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)
69-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)
70+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/static/cmake/modules/FindGDAL.cmake)
71+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/static/cmake/modules/FindNETCDF.cmake)
72
73 # Environment
74 #
Note: See TracBrowser for help on using the repository browser.