|
2001-04-16
| ||
| 23:29 | • Ticket [218542ffff] Support for Cygwin32/Mingw32 status still Closed with 3 ... artifact: 1045205082 user: dgp | |
|
2000-10-26
| ||
| 08:24 | • Closed ticket [218542ffff]. artifact: 290360a80d user: welch | |
| 01:01 | • New ticket [218542ffff]. artifact: 4adfc6b2f5 user: nobody | |
Support for Cygwin32/Mingw32
Closed / Fixed218542ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:57
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
welch Closed ticket [218542ffff].
[History diff]2000-10-26 08:24:13
dgp Ticket [218542ffff]: 3 changes
[History diff]2001-04-16 23:29:46
Log in (anonymous is fine) to add a comment.