Skip to content

Commit 318eb36

Browse files
Merge branch 'master' into minpluginx.dmh
2 parents 7eaafef + 83c890a commit 318eb36

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

cmake/dependencies.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ set(USE_SZIP ${HAVE_SZ})
397397
set_std_filter(Blosc)
398398
if(Zstd_FOUND)
399399
set_std_filter(Zstd)
400+
else()
401+
set(NETCDF_ENABLE_FILTER_ZSTD OFF)
400402
endif()
401403
if(Bz2_FOUND)
402404
set_std_filter(Bz2)

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ else
20362036
NC_LIBS="$with_netcdf_c_lib"
20372037
fi
20382038
if test "x$enable_shared" != xyes; then
2039-
NC_LIBS="$LDFLAGS $NC_LIBS $LIBS"
2039+
NC_LIBS="$LDFLAGS $NC_LIBS"
20402040
fi
20412041

20422042
case "x$target_os" in

nc-config.cmake.in

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ cc="@CMAKE_C_COMPILER@"
1414
cflags="-I@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@"
1515
libs="-L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ @NC_LIBS@"
1616
libsprivate="@LIBS@"
17-
HAS_STATIC=""
17+
HAS_STATIC="FALSE"
18+
PRINTLIBS="FALSE"
1819

1920
has_dap2="@NETCDF_ENABLE_DAP2@"
2021
if [ -z $has_dap2 -o "$has_dap2" = "OFF" ]; then
@@ -228,6 +229,9 @@ fi
228229

229230
for i in "$@"; do
230231
case $i in
232+
--libs)
233+
PRINTLIBS="TRUE"
234+
;;
231235
--static)
232236
HAS_STATIC="TRUE"
233237
;;
@@ -349,7 +353,7 @@ while test $# -gt 0; do
349353

350354
--libs)
351355
if [ "x$HAS_STATIC" = "xTRUE" ]; then
352-
echo $libs $libsprivate
356+
echo $LDFLAGS $libs $libsprivate
353357
else
354358
echo $libs
355359
fi
@@ -369,7 +373,9 @@ while test $# -gt 0; do
369373

370374
;;
371375
--static)
372-
376+
if [ "x$PRINTLIBS" != "xTRUE" ]; then
377+
echo $LDFLAGS $libs $libsprivate
378+
fi
373379
;;
374380

375381
--prefix)

nc-config.in

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ has_multifilters="yes"
3838
has_quantize="@HAS_QUANTIZE@"
3939
has_stdfilters="@STD_FILTERS@"
4040
version="@PACKAGE_NAME@ @PACKAGE_VERSION@"
41-
HAS_STATIC=""
42-
41+
HAS_STATIC="FALSE"
42+
PRINTLIBS="FALSE"
4343
usage()
4444
{
4545
cat <<EOF
@@ -128,6 +128,9 @@ fi
128128

129129
for i in "$@"; do
130130
case $i in
131+
--libs)
132+
PRINTLIBS="TRUE"
133+
;;
131134
--static)
132135
HAS_STATIC="TRUE"
133136
;;
@@ -249,10 +252,11 @@ while test $# -gt 0; do
249252
echo $libs
250253
fi
251254
;;
252-
--static)
253-
254-
;;
255-
255+
--static)
256+
if [ "x$PRINTLIBS" != "xTRUE" ]; then
257+
echo $libs $libsprivate
258+
fi
259+
;;
256260
--prefix)
257261
echo "${prefix}"
258262
;;

0 commit comments

Comments
 (0)