Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-12-30
08:48 • Ticket [1092952fff] TEA patch for MSVC7 status still Closed with 4 other cha... artifact: 77200815c0 user: hobbs
07:10 • Closed ticket [1092952fff]. artifact: e8c29b37de user: hobbs
04:47 • Ticket [1092952fff]: 4 changes artifact: db9b9ee32c user: jenglish
04:40 • Add attachment tea-vc7-compat.patch to ticket [1092952fffffffff|1092952... artifact: f80c88a9e1 user: jenglish
04:40 • Ticket [1092952fff] TEA patch for MSVC7 status still Open with 4 other chang... artifact: 985bf6d4f7 user: jenglish
2004-12-29
21:39 • New ticket [1092952fff]. artifact: 585ce113cb user: jenglish

TEA patch for MSVC7

Closed / Fixed1092952fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-12-29 21:39:54
Patch to sampleextension/tclconfig/tcl.m4 to allow TEA
extensions to build with MSVC7 (the "free" edition of
the VC++ toolkit).

Summary of changes:

+ Don't use "-GD"
+ Don't use "-link50compat"
+ Don't use "-YX"
+ Use "LINK -LIB" instead of "LIB" for STLIB_LD.

Related information: http://wiki.tcl.tk/11431
jenglishplain2004-12-30 04:40:50
File Added - 113833: tea-vc7-compat.patch
jenglishplain2004-12-30 04:47:54
Logged In: YES 
user_id=68433

More info:

"/GD" supposedly means "Optimize for Windows DLL", but
according to the manual it's also "Reserved for future use".
 Apparently a no-op in VC6 and earlier; not supported at all
in VC7.

"-link50compat" isn't needed for TEA extensions under normal
circumstances to begin with: it's only useful if the
extension (a) builds an import library (either for the
extension itself or for a stub library) that (b) needs to be
compatible with older Windows compilers.

"-YX" generates a *.PCH file under VC6; it's not supported
under VC7, and is not necessary even under VC6.  VC6 users
who really want the *.pch file can use "CFLAGS=-YX" at
configure-time to reenable this feature.

LIB.EXE does not seem to be included in MSVC7;  LINK /LIB
should work for VC6 and earlier versions as well as VC7.

It might be worthwhile to also remove "/MD" ("link with
MSVCRT"), but I'm not sure of the full ramifications of
this.  Since LIBTCLSTUB.LIB already has a DEFAULTLIB:MSVCRT
dependency, it might not do any good anyway.
hobbsplain2004-12-30 07:10:30
Logged In: YES 
user_id=72656

GD, link50compat and YX removed, link -lib used, MD left alone.
hobbsplain2004-12-30 08:48:17
Logged In: YES 
user_id=72656

Applied to the core as well.
Log in (anonymous is fine) to add a comment.

Attachments: