From 0652336413775df89b051f604278c4e9e5ce2784 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 29 May 2012 19:15:12 +0300 Subject: Fix bug #11405 with MSVC build of emacsclientw. lib-src/makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS) instead of a literal -mwindows, which is not supported by MSVC. nt/nmake.defs (MWINDOWS): Define as "-subsystem:windows -entry:mainCRTStartup". Suggested by Fabrice Popineau . nt/gmake.defs (MWINDOWS): Define as "-mwindows". --- nt/gmake.defs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nt/gmake.defs') diff --git a/nt/gmake.defs b/nt/gmake.defs index a669ffd27be..dd96b776363 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs @@ -210,6 +210,8 @@ else CHECKING_CFLAGS = endif +MWINDOWS = -mwindows + CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 -- cgit v1.2.1