File tree Expand file tree Collapse file tree 4 files changed +22
-10
lines changed
Expand file tree Collapse file tree 4 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,8 @@ set(USE_SZIP ${HAVE_SZ})
397397set_std_filter (Blosc )
398398if (Zstd_FOUND)
399399 set_std_filter (Zstd )
400+ else ()
401+ set (NETCDF_ENABLE_FILTER_ZSTD OFF )
400402endif ()
401403if (Bz2_FOUND)
402404 set_std_filter (Bz2 )
Original file line number Diff line number Diff line change @@ -2036,7 +2036,7 @@ else
20362036 NC_LIBS="$with_netcdf_c_lib"
20372037fi
20382038if test "x$enable_shared" != xyes; then
2039- NC_LIBS="$LDFLAGS $NC_LIBS $LIBS "
2039+ NC_LIBS="$LDFLAGS $NC_LIBS"
20402040fi
20412041
20422042case "x$target_os" in
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ cc="@CMAKE_C_COMPILER@"
1414cflags=" -I@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@"
1515libs=" -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ @NC_LIBS@"
1616libsprivate=" @LIBS@"
17- HAS_STATIC=" "
17+ HAS_STATIC=" FALSE"
18+ PRINTLIBS=" FALSE"
1819
1920has_dap2=" @NETCDF_ENABLE_DAP2@"
2021if [ -z $has_dap2 -o " $has_dap2 " = " OFF" ]; then
228229
229230for 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)
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ has_multifilters="yes"
3838has_quantize=" @HAS_QUANTIZE@"
3939has_stdfilters=" @STD_FILTERS@"
4040version=" @PACKAGE_NAME@ @PACKAGE_VERSION@"
41- HAS_STATIC=" "
42-
41+ HAS_STATIC=" FALSE "
42+ PRINTLIBS= " FALSE "
4343usage ()
4444{
4545 cat << EOF
128128
129129for 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 ;;
You can’t perform that action at this time.
0 commit comments