summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2001-07-06 22:26:51 (GMT)
committermdejong <mdejong>2001-07-06 22:26:51 (GMT)
commit79b281a385aa3099927b9f15abf490b30789089c (patch)
tree6c11eb6525ccfe7d80beef85f1c39a40c532c55c /win/tcl.m4
parent55eeb4b96b986ad55e420ef4cfc69f60b5079a9a (diff)
downloadtk-79b281a385aa3099927b9f15abf490b30789089c.zip
tk-79b281a385aa3099927b9f15abf490b30789089c.tar.gz
tk-79b281a385aa3099927b9f15abf490b30789089c.tar.bz2
* win/configure: Regen.
* win/tcl.m4: Update from Tcl.
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m49
1 files changed, 8 insertions, 1 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 40ba286..add1a55 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -415,8 +415,15 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
# Specify linker flags depending on the type of app being
# built -- Console vs. Window.
+ #
+ # We need to pass -e _WinMain@16 so that ld will use
+ # WinMain() instead of main() as the entry point. We can't
+ # use autoconf to check for this case since it would need
+ # to run an executable and that does not work when
+ # cross compiling. Remove this -e workaround once we
+ # require a gcc that does not have this bug.
LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}"
- LDFLAGS_WINDOW="-mwindows ${extra_ldflags}"
+ LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}"
else
SHLIB_LD="link -dll -nologo -incremental:no"
SHLIB_LD_LIBS="user32.lib advapi32.lib"