Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7b5f5624de38b291b676c47df1c4dbcfc1c3a4a9999192ce1d93b8d98a02a87e
Ticket: 9cdb0d585883311b2acc9577820e90713968c1cb
unix/Makefile.in problem when building pkgs for static builds
User & Date: serhiy.storchaka on 2026-10-20 12:29:51
Changes

  1. foundin changed to: "9.1.0"
  2. icomment:
    Still present in 8.6, 9.0 and 9.1, on Unix and Windows: the fixed <tt>--enable-shared</tt> comes after the arguments passed on to the packages' configure, so <tt>--disable-shared</tt> never reaches them. This may be intended: shared, stub-enabled packages can be loaded with <nowiki>[package require]</nowiki> also from a static Tcl, while static ones only help when linked into the application. So there are two proposed fixes, please choose:
    
      *  [/timeline?r=pkgs-respect-disable-shared|pkgs-respect-disable-shared], as suggested here: <tt>--disable-shared</tt> builds static packages too (<tt>--libdir</tt> stays last). Incompatible for static Tcl builds that load the bundled packages.
      *  [/timeline?r=pkgs-shared-make-var|pkgs-shared-make-var]: packages stay shared by default, and <tt>make PKG_SHARED=--disable-shared</tt> builds them static. No change for existing builds.
    
    Both tested with Thread in pkgs/, on Linux and with a MinGW cross build.
    
  3. login: "serhiy.storchaka"
  4. mimetype: "text/x-fossil-wiki"