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:5570b7d58caeCherry-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.