TEA (tclconfig) Source Code

View Ticket
Login
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA
2023-09-27
14:18 Closed ticket [c981aa093a]: PKG_STUB_LIB_FILE wrong for Windows plus 7 other changes artifact: 08cacbd5a1 user: jan.nijtmans
14:15
Fix [c981aa093a]: PKG_STUB_LIB_FILE wrong for Windows check-in: e97a1b2d0d user: jan.nijtmans tags: trunk, main
13:12 New ticket [c981aa093a] PKG_STUB_LIB_FILE wrong for Windows. artifact: 66bd5ae2e7 user: anonymous

Ticket UUID: c981aa093ad39f25451564274ec90d8c95f0fec2
Title: PKG_STUB_LIB_FILE wrong for Windows
Type: Bug Version: 9.0
Submitter: anonymous Created on: 2023-09-27 13:12:27
Subsystem: 53. Configure and Build Tools Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2023-09-27 14:18:29
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2023-09-27 14:18:29
Description:
Variable PKG_STUB_LIB_FILE is set wrong for Windows.
Paul

>fossil diff tcl.m4
Index: tcl.m4
==================================================================
--- tcl.m4
+++ tcl.m4
@@ -3224,11 +3224,11 @@
            eval eval "PKG_LIB_FILE8=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
            eval eval "PKG_LIB_FILE9=${PACKAGE_LIB_PREFIX9}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
            eval eval "PKG_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}"
        fi
        # Some packages build their own stubs libraries
-       eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
+       eval eval "PKG_STUB_LIB_FILE=${PACKAGE_LIB_PREFIX8}${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}"
        if test "$GCC" = "yes"; then
            PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE}
        fi
        # These aren't needed on Windows (either MSVC or gcc)
User Comments: jan.nijtmans added on 2023-09-27 14:18:29:

Well spotted! Thanks! I tried it with tdbc, it produced "libtcl9tdbcstub1.1.5.a" on windows, which is - indeed - not correct.

Fixed [e97a1b2d0d|here]