Tk Source Code

Check-in [314d2909]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fall back to the zip program if no Tcl 9 shell runs on the build host, e.g. when cross-compiling, to create the Tk library archive. For static builds the Tcl library is taken from the archive of the static tclsh with "zip -A" and "zip -J". The variable for the native tclsh is renamed to NATIVE_TCLSH, as NATIVE_ZIP; the MinGW build also accepts TCLSH_NATIVE, as nmake does.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | unix-zipfs-mkzip
Files: files | file ages | folders
SHA3-256: 314d29097c7723b567cdca10625308772033918df3d8eb6375319474255be7c5
User & Date: serhiy.storchaka 2026-10-05 08:13:16.306
References
2026-10-05
08:51 • Ticket [130949da] Linux : no rule to make minizip needed to build libtk_8_7_a4.zip status still Open with 3 other changes artifact: f2546a81 user: serhiy.storchaka
Context
2026-10-15
16:42
Rebase to main check-in: c6891c47 user: serhiy.storchaka tags: unix-zipfs-mkzip
2026-10-05
08:13
Fall back to the zip program if no Tcl 9 shell runs on the build host, e.g. when cross-compiling, to create the Tk library archive. For static builds the Tcl library is taken from the archive of the static tclsh with "zip -A" and "zip -J". The variable for the native tclsh is renamed to NATIVE_TCLSH, as NATIVE_ZIP; the MinGW build also accepts TCLSH_NATIVE, as nmake does. check-in: 314d2909 user: serhiy.storchaka tags: unix-zipfs-mkzip
2026-09-25
14:23
Fix [130949dafe]: build fails without zip: no rule to make minizip. The autoconf builds (unix and MinGW) used an external zip program to create the Tk library archive, with a fallback to minizip, but Tk's Makefiles never had a rule to build minizip. Create the archive with "zipfs mkzip" of Tcl 9, as makefile.vc has done since zip embedding was added ([30d0843b21]). The tclsh of the Tcl build directory or of the installed Tcl is used; TCLSH_NATIVE can be set to a host tclsh for cross-compiling. For static builds, tcl_library is copied from the archive of the static tclsh. This also removes the use of "find -empty", which Solaris find does not support. check-in: d399f15e user: serhiy.storchaka tags: unix-zipfs-mkzip
Changes
Unified Diff Side-by-Side Diff Patch
Changes to unix/Makefile.in.
Changes to win/Makefile.in.