more Mingw fixes
Closed / Fixed217975ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:47:00
OriginalBugID: 5307 Bug
Version: 8.3
SubmitDate: '2000-05-01'
LastModified: '2000-05-17'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 5499
OS: All Windows
FixedDate: '2000-10-25'
ClosedDate: '2000-05-17'
Name:
Jan Nijtmans
Comments:
I didn't manage to produce working mingw executables using the TEA
makefiles yet, but at least this is
another step in the right direction.
ReproducibleScript:
When compiling Tcl 8.3.1 with the latest mingw, the following things go wrong:
- cat32.exe cannot be built, because dllwrap doesn't use the VC++ specific
".obj" extension and " -link" option.
- tclpip83.dll cannot be built for the same reason, and also because of
the VC++-specific "-Fe" option
- the resource files cannot be compiled because winres has different
options than VC++'s rc.
Patch:
*** Makefile.in.origWed Apr 26 22:51:49 2000
--- Makefile.inSun Apr 30 19:39:58 2000
***************
*** 324,330 ****
$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
$(CAT32): cat32.${OBJEXT}
! $(CC) $(CFLAGS) cat32.obj $(CC_EXENAME) -link $(LDFLAGS_CONSOLE)
# The following targets are configured by autoconf to generate either
# a shared library or static library
--- 324,330 ----
$(CC) -c $(CC_SWITCHES) $(DEPARG) $(CC_OBJNAME)
$(CAT32): cat32.${OBJEXT}
! $(CC) $(CFLAGS) cat32.${OBJEXT} $(CC_EXENAME) $(LDFLAGS_CONSOLE)
# The following targets are configured by autoconf to generate either
# a shared library or static library
***************
*** 354,360 ****
${PIPE_DLL_FILE}: ${PIPE_OBJS}
@$(RM) ${PIPE_DLL_FILE}
! $(CC) $(CFLAGS) ${PIPE_OBJS} $(LIBS) -Fe$(PIPE_DLL_FILE)
# Add the object extension to the implicit rules. By default .obj is not
# automatically added.
--- 354,360 ----
${PIPE_DLL_FILE}: ${PIPE_OBJS}
@$(RM) ${PIPE_DLL_FILE}
! $(CC) $(CFLAGS) ${PIPE_OBJS} $(LIBS) $(CC_EXENAME)
# Add the object extension to the implicit rules. By default .obj is not
# automatically added.
***************
*** 404,410 ****
--- 404,414 ----
$(CC) -c $(CC_SWITCHES) -DBUILD_tcl ${DEPARG} $(CC_OBJNAME)
.rc.res:
+ ifeq "$(findstring windres, $(RC))" ""
$(RC) -fo $@ -r -i "$(GENERIC_DIR_NATIVE)" $(DEPARG)
+ else
+ $(RC) -O coff -o $@ --include "$(GENERIC_DIR)" $(DEPARG)
+ endif
install: all install-binaries install-libraries install-doc
*** tcl.m4.origWed Apr 26 22:51:50 2000
--- tcl.m4Sun Apr 30 19:46:36 2000
***************
*** 501,508 ****
# Specify linker flags depending on the type of app being
# built -- Console vs. Window.
! LDFLAGS_CONSOLE="-subsystem:console"
! LDFLAGS_WINDOW="-subsystem:windows"
fi
])
--- 501,508 ----
# Specify linker flags depending on the type of app being
# built -- Console vs. Window.
! LDFLAGS_CONSOLE="-link -subsystem:console"
! LDFLAGS_WINDOW="-link -subsystem:windows"
fi
])
PatchFiles:
win/Makefile.in win/tcl.m4
welch Closed ticket [217975ffff].
[History diff]2000-10-26 08:10:57
dgp Ticket [217975ffff]: 3 changes
[History diff]2001-04-05 06:54:29
Log in (anonymous is fine) to add a comment.