diff -up ncview-2.1.8/configure.rpath ncview-2.1.8/configure
--- ncview-2.1.8/configure.rpath 2017-03-08 10:35:42.000000000 -0700
+++ ncview-2.1.8/configure 2021-08-13 22:13:02.758999292 -0600
@@ -5852,32 +5852,6 @@ if test x$CC_TEST_SAME != x$NETCDF_CC_TE
exit -1
fi
-#----------------------------------------------------------------------------------
-# Construct our RPATH flags. Idea here is that we have LDFLAGS that might look,
-# for example, something like this:
-# LIBS="-L/usr/local/lib -lnetcdf -L/home/pierce/lib -ludunits"
-# We want to convert this to -rpath flags suitable for the compiler, which would
-# have this format:
-# "-Wl,-rpath,/usr/local/lib -Wl,-rpath,/home/pierce/lib"
-#
-# As a safety check, I only do this for the GNU compiler, as I don't know if this
-# is anything like correct syntax for other compilers. Note that this *does* work
-# for the Intel icc compiler, but also that the icc compiler sets $ac_compiler_gnu
-# to "yes". Go figure.
-#----------------------------------------------------------------------------------
-echo "ac_computer_gnu: $ac_compiler_gnu"
-if test x$ac_compiler_gnu = xyes; then
- RPATH_FLAGS=""
- for word in $UDUNITS2_LDFLAGS $NETCDF_LDFLAGS; do
- if test `expr $word : -L/` -eq 3; then
- #RPDIR=`expr substr $word 3 999`;
- RPDIR=${word:2}
- RPATH_FLAGS="$RPATH_FLAGS -Wl,-rpath,$RPDIR"
- fi
- done
-
-fi
-
ac_config_files="$ac_config_files Makefile src/Makefile"
cat >confcache <<\_ACEOF