Tcl Source Code

View Ticket
Login
Ticket UUID: 1095968
Title: report libdir in tclConfig.sh
Type: RFE Created on: 2005-01-04 19:24:41
Submitter: dgp Assigned to: stwo
Subsystem: 53. Configuration and Build Tools Severity: Minor
Priority: 5 Medium Last modified: 2026-11-13 11:18:43
Status: Closed Closed by: serhiy.storchaka
Resolution: Out of Date Closed on: 2026-11-13 11:18:43
Version: None
Description:
Add the line to tclConfig.sh.in

TCL_LIBDIR='@libdir@'

so that applications linking the
Tcl library can know where it's
found.
User Comments:
dgp added on 2005-01-05 02:47:37:
Logged In: YES 
user_id=80530


An alternative might be to

tcl::pkgconfig get libdir,runtime

in the corresponding tclsh program.

dgp added on 2009-12-11 00:15:40:
Dropping prio since the use case
isn't recorded and a workaround (better
answer?) is known.

serhiy.storchaka added on 2026-11-13 11:18:43:

Besides tcl::pkgconfig, the library directory is available as pkg-config --variable=libdir tcl from the tcl.pc file installed since Tcl 8.6, so closing.