Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 67d07a4e5167f20cbcf92f559104add3749e45167f63a63b1576938d4bf22e34
Ticket: 3546272fffffffffffffffffffffffffffffffff
win/makefile.vc produces different files than win/Makefile
User & Date: jan.nijtmans on 2022-04-18 17:13:21
Changes

  1. closedate changed to: "2459688.21760676"
  2. closer changed to: "jan.nijtmans"
  3. comment changed to:
    A normal build using win/Makefile, configured
    with --enable-shared (the default) produces the
    following file names:
        win/tcl86.dll
        win/tclsh86.exe
    doing the same with win/makefile.vc produces:
        win/tcl86t.dll
        win/tclsh86t.exe
    
    Doing a --disable-shared build with win/Makefile:
        win/tcl86s.dll
        win/tclsh86s.exe
    doing the same with win/makefile.vc, using
    OPTS=static,msvcrt (equivalent to
    --disable-shared in win/configure) produces:
        win/tcl86tsx.dll
        win/tclsh86tsx.exe
    
    Explanation: win/makefile.vc uses the
    following suffixes (from win/rules.vc):
    # Naming convention:
    #   t = full thread support.
    #   s = static library (as opposed to an
    #import library)
    #   g = linked to the debug enabled C
    #run-time.
    #   x = special static build when it
    #links to the dynamic C run-time.
    
    The option 't' (threads) is the default
    since 8.6, and 'x' (msvcrt) is normally
    used in combination with static
    builds to reduce the size of the
    executable (nowadays everyt win32
    system has msvcrt.dll on-board)
    
    In order to let win/makefile.vc produce
    the same executable names as win/Makefile,
    the following is proposed:
    - Invert the option OPTS=msvcrt to
      OPTS=nomsvcrt, effectively making msvcrt
      the default for both dynamic and static
      builds, as win/Makefile does
    - Invert the meaning of the options 't' and 'x'
      meaning 'no threads' and 'no msvcrt', so they
      only appear in the file name when using
      non-default builds.
    - change the path where binaries are built
      (MSVC>6) to XXX_Dynamic (by default) or
      XXX_Static (for static builds). For non-threaded
      builds, prepend 'NonThreaded' to it, for
      non-msvcrt builds, append 'X' to it.
    
    This way, no special tricks need to be done
    any more in extensions, because Tcl/Tk
    static libraries might have a 't' in the
    filename (8.6) or not (<8.6)
    
    (patch still being developed)
    
  4. icomment:
    Starting with Tcl 8.7, the 't' suffix is not used any more
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Out of Date"
  8. severity changed to: "Minor"
  9. status changed to: "Closed"