Index: /issm/trunk-jpl/examples/EsaGRACE/runme.m
===================================================================
--- /issm/trunk-jpl/examples/EsaGRACE/runme.m	(revision 27564)
+++ /issm/trunk-jpl/examples/EsaGRACE/runme.m	(revision 27565)
@@ -125,10 +125,10 @@
 		set(0,'DefaultAxesFontSize',18,'DefaultAxesLineWidth',1,'DefaultTextFontSize',18,'DefaultLineMarkerSize',8)
 		figure1=figure('Position', [100, 100, 1000, 500]);
-		gcf; load coast; cla;
+		gcf; load coastlines; cla;
 		pcolor(lon_grid,lat_grid,sol_grid); shading flat; hold on;
 		if (kk==1)
-			geoshow(flipud(lat),flipud(long),'DisplayType','polygon','FaceColor','white');
+			geoshow(flipud(coastlat),flipud(coastlon),'DisplayType','polygon','FaceColor','white');
 		end
-		plot(long,lat,'k'); hold off;
+		plot(coastlon,coastlat,'k'); hold off;
 		c1=colorbar;
 		colormap('haxby');
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac-static.sh	(revision 27565)
@@ -28,4 +28,5 @@
 export DAK_SRC=${ISSM_DIR}/externalpackages/dakota/src # DO NOT CHANGE THIS
 export LAPACK_LIBS="-L${LAPACK_ROOT}/lib -lflapack ${LIBGFORTRAN_ROOT}/libgfortran.a ${LIBGFORTRAN_ROOT}/libquadmath.a ${LIBGCC}" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
+export LDFLAGS="-framework CoreFoundation"
 
 # Cleanup
Index: /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/dakota/install-6.2-mac.sh	(revision 27565)
@@ -25,4 +25,5 @@
 export DAK_SRC=${ISSM_DIR}/externalpackages/dakota/src # DO NOT CHANGE THIS
 export LAPACK_LIBS="-L${LAPACK_ROOT}/lib -lflapack -L${LIBGFORTRAN_ROOT} -lgfortran" # Need to export LAPACK_LIBS *and* pass it as an option to CMake to ensure that external packages also find it
+export LDFLAGS="-framework CoreFoundation"
 
 # Cleanup
Index: /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3-python-static.sh	(revision 27565)
@@ -17,5 +17,5 @@
 export CXX=mpicxx
 export LDFLAGS="-L${HDF5_ROOT}/lib" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
-export LIBS="-lhdf5_hl -lhdf5" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
+export LIBS="-lsqlite3 -lhdf5_hl -lhdf5" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
 export PREFIX="${ISSM_DIR}/externalpackages/gdal/install" # Need this to properly set destination root for Python libraries on macOS (should not affect Linux build; do not need for this configuration, but including it for consistency)
 
Index: /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/gdal/install-3-static.sh	(revision 27565)
@@ -17,5 +17,5 @@
 export CXX=mpicxx
 export LDFLAGS="-L${HDF5_ROOT}/lib" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
-export LIBS="-lhdf5_hl -lhdf5" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
+export LIBS="-lsqlite3 -lhdf5_hl -lhdf5" # Need to do this so HDF5 symbols referenced in NETCDF library are found at link time
 export PREFIX="${ISSM_DIR}/externalpackages/gdal/install" # NOTE: Need to export this to properly set destination root for Python libraries on macOS (should not affect Linux build). Set to location where external package should be installed.
 
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindGDAL.cmake	(revision 27565)
@@ -166,5 +166,5 @@
 # find all manually-supplied libs
 if (GDAL_EXTRA_LIBS)
-	# Ensure -l is precedeced by whitespace to not match
+	# Ensure -l is preceded by whitespace to not match
 	# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
 	string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_extra_lib_dashl ${GDAL_EXTRA_LIBS})
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6/static/cmake/modules/FindNETCDF.cmake	(revision 27565)
@@ -59,5 +59,5 @@
 			OUTPUT_VARIABLE NETCDF_CONFIG_LIBS)
 		if (NETCDF_CONFIG_LIBS)
-			# Ensure -l is precedeced by whitespace to not match
+			# Ensure -l is preceded by whitespace to not match
 			# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
 			string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_dashl ${NETCDF_CONFIG_LIBS})
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27564)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27565)
@@ -20,5 +20,5 @@
 
 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)
-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)
+NETCDF_EXTRA_LIBS="-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)
 
 # Environment
@@ -27,5 +27,5 @@
 export CURL_INCLUDE_DIRS="${CURL_ROOT}/include"
 export CURL_LIBRARIES="${CURL_ROOT}/lib/libcurl.a;${ZLIB_ROOT}/lib/libz.a"
-export LDFLAGS="-framework CoreFoundation -framework Security"
+export LDFLAGS="-lsqlite3 -framework CoreFoundation -framework Security"
 export 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.
 
