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