Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2014-04-02
10:11 • Ticket [5bcb5026ad] Undefined autotools token @TK_LIBS@ in pkgconfig file st... 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 [5bcb5026ad51abb7|... artifact: e87ab307f0 user: badshah400
02:51 • New ticket [5bcb5026ad] Undefined autotools token @TK_LIBS@ in pkgconfig file</i... artifact: 9dce729798 user: badshah400

Undefined autotools token @TK_LIBS@ in pkgconfig file

Closed / Fixed5bcb5026ad51abb778ac6bb5b8781e17649ea72fCreated 13 years agoUpdated 13 years ago
Descriptionplain2014-03-31 02:51:33
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
Referenced by2
  • 85f74e89a1Add missing @TCL_LIB_FLAG@ to tcl.pc.in (derived from ticket [5bcb5026ad]) check-in2014-03-31 18:44:55
  • 70b7d58caeCherry-pick [c54059aaad] from trunk: Added support for reporting TEA-like info via pkg-config. Add missing @TCL_LIB_FLAG@ (derived from ticket [5bcb5026ad]) check-in2014-03-31 15:23:30
jan.nijtmanswiki2014-04-01 08:44:47

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

badshah400plain2014-04-02 10:11:47
Thanks a lot, Jan, for such a quick response.
Log in (anonymous is fine) to add a comment.