Skip to content
Tcl Source Code History Of Ticket 9cdb0d5858
Login

History Of Ticket 9cdb0d5858

Artifacts Associated With Ticket 9cdb0d5858

  1. Ticket change [6a78fc963a] (rid 188293) by anonymous on 2020-11-02 21:37:38:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      In unix/Makefile.in, the lines
                            $(PKG_CFG_ARGS) --libdir=$(PACKAGE_DIR) \
                            --enable-shared --enable-threads; ) || exit $$?; \
      want to be
                            --libdir=$(PACKAGE_DIR) \
                            --enable-shared --enable-threads $(PKG_CFG_ARGS) ; ) || exit $$?; \
      
      so that the PKG_CFG_ARGS are not overridden by --enable-shared, and --disable-shared can take effect for static builds.
      
    5. foundin initialized to: "8.6.10"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "fd3cf16422eda1bd8968c35795a5f4ed63fd54fa"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to:
      unix/Makefile.in problem when building pkgs for static builds
      
    16. type initialized to: "Bug"
  2. Ticket change [7b5f5624de] (rid 259398) by serhiy.storchaka on 2026-10-20 12:29:51:

    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"
  3. Ticket change [659567891f] (rid 259813) by dgp on 2026-10-21 18:05:34:

    1. icomment:
      
      The purpose of the `make *packages` targets in Tcl's unix Makefile
      is to make installable builds of the bundled collection of packages
      that can then successfully be [package require]d or [load]ed into
      the Tcl built by the same Makefile.  Forcing the --enable-shared
      build is intentional to achieve this aim.
      
      Back when it made a difference, forcing --enable-threads had similar
      justification.  I believe in Tcl 9 we can drop that since we
      require thread-enabled code for everything now.
      
      The Tcl+pkgs source code distribution contains the full source code
      releases of all the packages.  Anyone who needs a --disable-shared
      build of one of those packages is welcome to do that by directly
      working within the package's source directory and using its own
      configuration and build mechanism.  I strongly prefer we do not enable
      that control in Tcl's unix/Makefile.  If you choose to build one of the
      bundled packages through the Tcl+pkgs collection, then you get the build
      configuration suitable for Tcl+pkgs installation.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  4. Ticket change [28fec64fac] (rid 260877) by jan.nijtmans on 2026-10-30 21:11:33:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461344.3830270488"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      I agree with Don. If you build a package with --disable-shared, the only thing built is a static library (*.a or *.lib). This library is not useful in itself, it still has to be linked in the application, neither Tcl nor Tk have the machinery to do that. So, when being part of the Tcl 'batteries included', --disable-shared makes no sense for the included packages.
      
      So, closing as  'Won't fix' (in fact 'works as designed') makes most sense.
      
      Anyway, thanks for bringing this up! Closing the two branches. Sorry!
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Wont Fix"
    8. status changed to: "Closed"