Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-10-30
18:36 • Closed ticket [1cf49a0926]: Install pkgconfig plus 6 other changes artifact: 8442b4b360 user: jan.nijtmans
12:41
Fix [1cf49a0926] and [3161b74ca7]: Install man-pages and pkg-config on Windows check-in: bbc10f091d user: jan.nijtmans tags: core-8-6-branch
2025-10-28
10:48 • Ticket [1cf49a0926] Install pkgconfig status still Open with 3 other changes artifact: 29f13a157b user: oscarfv
10:26 • Ticket [1cf49a0926]: 3 changes artifact: ee7ec1302f user: jan.nijtmans
09:31 • Ticket [1cf49a0926]: 3 changes artifact: bfda636a18 user: oscarfv
08:21
Fix [1cf49a0926]: Install pkgconfig on Windows closed check-in: f856dbf939 user: jan.nijtmans tags: bug-3161b74ca7
07:58 • Ticket [1cf49a0926] Install pkgconfig status still Open with 4 other changes artifact: 9b137ea49a user: jan.nijtmans
2025-10-27
15:16 • New ticket [1cf49a0926]. artifact: 8084b484de user: oscarfv

Install pkgconfig

Closed / Fixed1cf49a09261a8650662cce3ea50e8be618d162dbCreated 1 year agoUpdated 1 year ago
Descriptionplain2025-10-27 15:16:21
From MSYS2/Mingw-packages:

--- a/win/configure.in
+++ b/win/configure.in
@@ -285,6 +285,7 @@
 
 eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}"
 
+eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\""
 eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\""
 eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\""
 eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`$CYGPATH $(pwd)` ${TCL_STUB_LIB_FLAG}\""
@@ -375,6 +376,7 @@
 AC_SUBST(TCL_IMPORT_LIB_FILE)
 AC_SUBST(TCL_IMPORT_LIB_FLAG)
 # empty on win
+AC_SUBST(TCL_LIBS)
 AC_SUBST(TCL_LIB_SPEC)
 AC_SUBST(TCL_STUB_LIB_FILE)
 AC_SUBST(TCL_STUB_LIB_FLAG)
@@ -458,7 +458,7 @@
 AC_SUBST(RC_DEFINES)
 AC_SUBST(RES)
 
-AC_CONFIG_FILES([Makefile tclConfig.sh tcl.hpj tclsh.exe.manifest])
+AC_CONFIG_FILES([Makefile tclConfig.sh tcl.hpj tclsh.exe.manifest tcl.pc])
 AC_OUTPUT
 
 dnl Local Variables:
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -672,6 +672,9 @@
 	    echo Installing $(REG_LIB_FILE); \
 	    $(COPY) $(REG_LIB_FILE) "$(LIB_INSTALL_DIR)/reg${REGDOTVER}"; \
 	    fi
+	@echo "Installing pkg-config file to $(LIB_INSTALL_DIR)/pkgconfig/"
+	@$(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/pkgconfig"
+	@$(INSTALL_DATA) tcl.pc "$(LIB_INSTALL_DIR)/pkgconfig/tcl.pc"
 
 install-libraries: libraries install-tzdata install-msgs
 	@for i in "$(prefix)/lib" "$(INCLUDE_INSTALL_DIR)" \
Referenced by2
jan.nijtmanswiki2025-10-28 07:58:54

Trying this, I get:

error: cannot find input file: tcl.pc.in

Did you add a "tcl.pc.in" in the win directory, or is the UNIX version (tcl.pc:../unix/tcl.pc.in) fine?

oscarfvplain2025-10-28 09:31:13
Yes, we are using unix/tcltcl.pc.in by explicitly copying it from the build recipe:

  cp unix/tcl.pc.in win/tcl.pc.in

Sorry for missing this detail.

The Tk counterpart ( https://core.tcl-lang.org/tk/tktview/2c240bb0f5 ) does this on a different way (AC_CONFIG_FILES).
jan.nijtmanswiki2025-10-28 10:26:51

So, does [this] work for you?

oscarfvplain2025-10-28 10:48:42
I don't know autotools, so your judgement is way better than mine. After resolving the other tickets, I'll get an snapshot of the repo to test the build.

Thank you.
jan.nijtmanswiki2025-10-30 18:36:02

Fixed [here]

Thanks for the report and the patch!

Log in (anonymous is fine) to add a comment.