Overview
| Artifact ID: | 9b9c5b73ce1b0d55e30bf50e53ef6fd53a8a085bbe058beb12955e1695ea10c8 |
|---|---|
| Ticket: | ac3ea8730530daf7c680a4b9e2163dc146091fd6
Don't assume that Windows has no usable zlib/tommath |
| User & Date: | serhiy.storchaka on 2026-10-20 19:15:30 |
Changes
- foundin changed to: "9.0.5, 9.1.0"
- icomment:
Proposed in branch [61fe2461e3|win-system-zlib-tommath]: win/configure gets two options, off by default, so the standard build is unchanged: <verbatim>--with-system-zlib link -lz instead of the bundled zlib --with-system-libtommath link -ltommath instead of the bundled libtommath</verbatim> With them the bundled zlib1.dll / libtommath.dll and their import libraries are neither copied nor installed (for static builds the bundled objects are not compiled in), and configure fails if the library is not found. Tested natively with MSYS2 UCRT64 and its zlib and libtommath packages: tcl91.dll imports zlib1.dll and libtommath-1.dll from /ucrt64/bin, and the zlib, expr and format tests pass. Also checked with a MinGW-w64 cross build on Linux (shared and static, tests under Wine). The bundled zlib.h and tommath.h are still used for compiling, as on Unix.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"