summaryrefslogtreecommitdiff
path: root/nt/gmake.defs
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-05-29 19:15:12 +0300
committerEli Zaretskii <eliz@gnu.org>2012-05-29 19:15:12 +0300
commit0652336413775df89b051f604278c4e9e5ce2784 (patch)
treeffb4631964146190a57c5a28391797e345263e5c /nt/gmake.defs
parenta02ae4e5bfa13097dabee45f45ee992cdb830bb3 (diff)
downloademacs-0652336413775df89b051f604278c4e9e5ce2784.tar.gz
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 <fabrice.popineau@supelec.fr>. nt/gmake.defs (MWINDOWS): Define as "-mwindows".
Diffstat (limited to 'nt/gmake.defs')
-rw-r--r--nt/gmake.defs2
1 files changed, 2 insertions, 0 deletions
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