From: kgv Date: Tue, 19 Nov 2019 17:21:00 +0000 (+0300) Subject: 0031178: Configuration, genproj - fix searching for zlib on Linux platform X-Git-Tag: V7_5_0_beta~339 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=6a56fe924064d9d6da00d941219871e2a53495a1;p=occt-copy.git 0031178: Configuration, genproj - fix searching for zlib on Linux platform zlib library is called libz on Linux. --- diff --git a/adm/genconf.tcl b/adm/genconf.tcl index 799945e3ba..401656495d 100644 --- a/adm/genconf.tcl +++ b/adm/genconf.tcl @@ -198,7 +198,11 @@ proc wokdep:gui:UpdateList {} { } if { "$::HAVE_ZLIB" == "true" } { - wokdep:SearchStandardLibrary anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs "zlib" "zlib.h" "zlib" {"zlib"} + set aCheckLib "z" + if { "$::tcl_platform(platform)" == "windows" } { + set aCheckLib "zlib" + } + wokdep:SearchStandardLibrary anIncErrs anLib32Errs anLib64Errs anBin32Errs anBin64Errs "zlib" "zlib.h" "$aCheckLib" {"zlib"} } if { "$::HAVE_LIBLZMA" == "true" } { set aCheckLib "lzma" diff --git a/adm/genproj.tcl b/adm/genproj.tcl index b95166d1b3..513fe1dd7f 100644 --- a/adm/genproj.tcl +++ b/adm/genproj.tcl @@ -1371,7 +1371,7 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } { } } if { "$::HAVE_ZLIB" == "true" } { - set aLibsMap(CSF_ZLIB) "zlib" + set aLibsMap(CSF_ZLIB) "z" } if { "$::HAVE_LIBLZMA" == "true" } { set aLibsMap(CSF_LIBLZMA) "liblzma" @@ -1408,6 +1408,10 @@ proc osutils:csfList { theOS theCsfLibsMap theCsfFrmsMap } { # tbb headers define different pragma lib depending on debug/release set aLibsMap(CSF_TBB) "" + + if { "$::HAVE_ZLIB" == "true" } { + set aLibsMap(CSF_ZLIB) "zlib" + } } else { set aLibsMap(CSF_dl) "dl" if { "$theOS" == "mac" || "$theOS" == "ios" } {