From 66f2c131bd3ddcab4791015ffc29fc6816599986 Mon Sep 17 00:00:00 2001 From: Jan Mandel Date: Mon, 15 Jul 2024 14:59:07 -0600 Subject: [PATCH] fix missing -lnetcdff when netcdf built as shared libraries #8 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 701b24a..8e8f8ea 100755 --- a/configure +++ b/configure @@ -136,10 +136,10 @@ fi if [ -n "$NETCDF" ] ; then echo "Will use NETCDF in dir: $NETCDF" - # for 3.6.2 and greater there might be a second library, libnetcdff.a . Check for this and use + # for 3.6.2 and greater there might be a second library, libnetcdff.a or libnetcdff.so. Check for this and use # if available NETCDFF=" " - if [ -f "$NETCDF/lib/libnetcdff.a" ] ; then + if [ -f "$NETCDF/lib/libnetcdff.a" ] || [ -f "$NETCDF/lib/libnetcdff.so" ] ; then NETCDFF="-lnetcdff" fi else -- 2.11.4.GIT