Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 406280d376fc03addd8e76107ccf8c9d95d729b723004f0878017276278b5cb8
Ticket: 5916e48806d93dd9b24f8f73c3f4d7ed74b04eb3
tcl.pc: hardcoded depedencies, missing build flags
User & Date: chrstphrchvz on 2023-06-26 20:54:00
Changes

  1. icomment:
    I am attaching a brief patch for 8.7 and later, which I would consider the bare minimum for improving tcl.pc to correctly indicate bundled or external libtommath dependency. It appears to work with Tkinter.
    
    The approach in the patch assumes that if external libtommath is used, then it was installed with pkg-config data; maybe it often is, but that is not guaranteed. (MacPorts, for example, only recently began installing libtommath.pc: [https://github.com/macports/macports-ports/pull/18424]) Ideally, if a dependency is listed in tcl.pc, then that should mean Tcl used pkg-config to detect it and retrieve its build flags (e.g. <tt>-lz</tt>, <tt>-ltommath</tt>); only when a dependency is <em>not</em> detected by pkg-config should Tcl try providing build flags.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"