Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4adfc6b2f54064d0ff8519c382b36b959866fe7a
Ticket: 218542ffffffffffffffffffffffffffffffffff
Support for Cygwin32/Mingw32
User & Date: nobody on 2000-10-26 01:01:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 969 RFE
    Version: 8.0.4
    SubmitDate: '1998-12-15'
    LastModified: '1999-08-06'
    Severity: LOW
    Status: Released
    Submitter: welch
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: 4.0 SP3
    Machine: X86
    FixedDate: '1999-08-06'
    FixedInVersion: 8.2b2
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Jan Nijtmans
    
    
    
    DesiredBehavior:
    
    Adding a few lines to makefile.vc is enough to let it create a new
    
    file "libtcl80.a". This file can be used to link cygwin32/mingw32
    
    compiled applications to tcl80.dll in the same way as tcl80vc.lib
    
    does it for VC++ and tcl80bc.lib does it for Borland.
    
    
    
    This additional feature is only available if the GNU
    
    dllhelpers utilities are installed (I tested it with
    
    dllhelpers-0.2.4), otherwise makefile.vc just behaves
    
    as before.
    
    
    
    Three lines have to be removed from winDumpExts.c: They
    
    have no function any more in VC++ 5.0 because they only
    
    specify default values, but they prevent tcl.def to be
    
    usable in the GNU dllhelper tools.
    
    
    
    It is trivial to do the same for tk8.0.4, tcl8.1a2 and
    
    tk8.1a2.
    
    
    
    
    
    
    
    Patch:
    
    *** winDumpExts.c.origMon Sep 14 21:40:21 1998
    
    --- winDumpExts.cMon Dec 07 16:01:41 1998
    
    ***************
    
    *** 468,477 ****
    
      if (arg == argc) {
    
          goto Usage;
    
      }
    
    - fprintf(fout, "LIBRARY    %s\n", dllname);
    
    - fprintf(fout, "EXETYPE WINDOWS\n");
    
    - fprintf(fout, "CODE PRELOAD MOVEABLE DISCARDABLE\n");
    
    - fprintf(fout, "DATA PRELOAD MOVEABLE MULTIPLE\n\n");
    
      fprintf(fout, "EXPORTS\n");
    
          }
    
      
    
    --- 468,473 ----
    
    
    
    *** makefile.vc.origTue Nov 03 02:59:17 1998
    
    --- makefile.vcMon Dec 07 15:57:20 1998
    
    ***************
    
    *** 38,43 ****
    
    --- 38,44 ----
    
      TOOLS32= c:\progra~1\devstudio\vc
    
      TOOLS32_rc= c:\progra~1\devstudio\sharedide
    
      TOOLS16= c:\msvc
    
    + GNUTOOLS= c:\egcs-1.1\bin
    
      
    
      INSTALLDIR= c:\progra~1\Tcl
    
      
    
    ***************
    
    *** 75,80 ****
    
    --- 76,83 ----
    
      OUTDIR= $(TMPDIR)
    
      
    
      TCLLIB= $(OUTDIR)\$(NAMEPREFIX)$(VERSION)$(DBGX).lib
    
    + TCLARCHIVENAME  = lib$(NAMEPREFIX)$(VERSION)$(DBGX).a
    
    + TCLARCHIVE      = $(OUTDIR)\$(TCLARCHIVENAME)
    
      TCLDLLNAME= $(NAMEPREFIX)$(VERSION)$(DBGX).dll
    
      TCLDLL= $(OUTDIR)\$(TCLDLLNAME)
    
      TCLPLUGINLIB= $(OUTDIR)\$(NAMEPREFIX)$(VERSION)p$(DBGX).lib
    
    ***************
    
    *** 282,288 ****
    
      ######################################################################
    
      
    
      release:    setup $(TCLSH) dlls
    
    ! dlls:    setup $(TCL16DLL) $(TCLPIPEDLL) $(TCLREGDLL)
    
      all:    setup $(TCLSH) dlls $(CAT16) $(CAT32) 
    
      tcltest:    setup $(TCLTEST) dlls $(CAT16) $(CAT32)
    
      plugin:    setup $(TCLPLUGINDLL) $(TCLSHP)
    
    --- 285,291 ----
    
      ######################################################################
    
      
    
      release:    setup $(TCLSH) dlls
    
    ! dlls:    setup $(TCL16DLL) $(TCLPIPEDLL) $(TCLREGDLL) $(TCLARCHIVE)
    
      all:    setup $(TCLSH) dlls $(CAT16) $(CAT32) 
    
      tcltest:    setup $(TCLTEST) dlls $(CAT16) $(CAT32)
    
      plugin:    setup $(TCLPLUGINDLL) $(TCLSHP)
    
    ***************
    
    *** 306,311 ****
    
    --- 309,319 ----
    
      $(TMPDIR)\winDumpExts.obj 
    
      
    
      $(TCLLIB): $(TCLDLL)
    
    + 
    
    + $(TCLARCHIVE): $(TCLDLL)
    
    + set PATH=$(GNUTOOLS)
    
    + if exist $(GNUTOOLS)\dlltool.exe dlltool --as=as --dllname $(TCLDLLNAME) \
    
    +   --def $(TMPDIR)/tcl.def --output-lib $(TMPDIR)/$(TCLARCHIVENAME)
    
      
    
      $(TCLDLL): $(TCLOBJS) $(TMPDIR)\tcl.def $(TMPDIR)\tcl.res
    
      set LIB=$(TOOLS32)\lib
    
    
    
    
    
    
    
    
    
    PatchFiles:
    
    winDumpExts.c makefile.vc
    
    
    
    
    
    
    
    
    
    It would be a good advertisement for Tcl/Tk if Scriptics would support
    Mingw32/cygwin32 in the same level as it supports Borland;
    Supplying the stub library in the binary distribution, would help
    many customers which now fully depend on either Microsoft or Borland.
    dllhelpers-0.2.4 appears to be good enough for this purpose, the
    resulting stub archive is usable for both Mingw32 and Cygwin32
    It is not necessary to build the core with Mingw32/cygwin32 in
    order to to reach this goal; VC++ 5.0 seems to be just fine.
    
    cygwin support, part of the TEA, is added in 8.2. 
    -- 08/06/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Support for Cygwin32/Mingw32"
  11. type changed to: "Bug"