Tcl Source Code

View Ticket
Login
2014-04-02
10:11 Ticket [5bcb5026ad] Undefined autotools token @TK_LIBS@ in pkgconfig file status still Closed with 5 other changes artifact: d0694219be user: badshah400
2014-04-01
08:44 Closed ticket [5bcb5026ad]. artifact: 506ae9965d user: jan.nijtmans
2014-03-31
18:44
Add missing @TCL_LIB_FLAG@ to tcl.pc.in (derived from ticket [5bcb5026ad]) check-in: 85f74e89a1 user: jan.nijtmans tags: trunk
15:23
Cherry-pick [c54059aaad] from trunk: Added support for reporting TEA-like info via pkg-config. Add ... check-in: 70b7d58cae user: jan.nijtmans tags: core-8-5-branch
02:55 Add attachment tk-fix-pkgconfig-file.patch to ticket [5bcb5026ad] artifact: e87ab307f0 user: badshah400
02:51 New ticket [5bcb5026ad] Undefined autotools token @TK_LIBS@ in pkgconfig file. artifact: 9dce729798 user: badshah400

Ticket UUID: 5bcb5026ad51abb778ac6bb5b8781e17649ea72
Title: Undefined autotools token @TK_LIBS@ in pkgconfig file
Type: Bug Version: 8.6.1
Submitter: badshah400 Created on: 2014-03-31 02:51:33
Subsystem: 53. Configuration and Build Tools Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2014-04-02 10:11:47
Resolution: Fixed Closed By: badshah400
    Closed on: 2014-04-02 10:11:47
Description:
The pkgconfig file tk.pc.in shipped with tk sources [1] uses an undefined autotools tag @TK_LIBS@ which leads to the installed pkgconfig file tk.pc having the wrong linker flags:
Libs: -L${libdir} @TK_LIBS@

The correct value for the Libs tag would likely be something like
Libs: -L${libdir} -ltk8.6

This is fixed by the attached patch. This replaces the undefined @TK_LIBS@ by the token @TK_LIB_FLAG@, which generates the .pc file with the correct linker flag upon installation by autotools.

[1] See here: http://core.tcl.tk/tk/artifact/458b229d85be3b3e
User Comments: badshah400 added on 2014-04-02 10:11:47:
Thanks a lot, Jan, for such a quick response.

jan.nijtmans added on 2014-04-01 08:44:47:

Fixed in dad7e44466 (core-8-5-branch) and 541c37eaea (trunk)


Attachments: