aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorChong Yidong2012-05-31 14:08:06 +0800
committerChong Yidong2012-05-31 14:08:06 +0800
commitefc00ab16e2890b75d7224434ac43fe944ade4dd (patch)
tree28c1078ca32b96402cd1a5f618a17b3526143f27 /nt
parentba93a18774352c97d6dd73c73141cbff6305581b (diff)
parentdd41169b6cb0105b0766f3d368c657ebafc19cba (diff)
downloademacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.tar.gz
emacs-efc00ab16e2890b75d7224434ac43fe944ade4dd.zip
Merge from emacs-24; up to 2012-04-24T21:47:24Z!michael.albinus@gmx.de
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog17
-rwxr-xr-xnt/configure.bat39
-rw-r--r--nt/gmake.defs2
-rw-r--r--nt/nmake.defs2
4 files changed, 44 insertions, 16 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 781d5d71559..0687e8be605 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,20 @@
12012-05-31 Eli Zaretskii <eliz@gnu.org>
2
3 * configure.bat (genmakefiles): Move the redirection away from the
4 end of the command, to avoid excess whitespace at the end of Make
5 variables created at configure time, and also avoid things like
6 "FOO1>>config.settings", where "1" gets interpreted as the file
7 descriptor and eaten up. This fixes breakage introduced by the
8 last change, without reintroducing the bug fixed by that change.
9
102012-05-31 Eli Zaretskii <eliz@gnu.org>
11
12 * nmake.defs (MWINDOWS): Define as
13 "-subsystem:windows -entry:mainCRTStartup". Suggested by Fabrice
14 Popineau <fabrice.popineau@supelec.fr>. (Bug#11405)
15
16 * gmake.defs (MWINDOWS): Define as "-mwindows".
17
12012-05-28 Eli Zaretskii <eliz@gnu.org> 182012-05-28 Eli Zaretskii <eliz@gnu.org>
2 19
3 * config.nt (HAVE_SYSINFO): Remove; unused. 20 * config.nt (HAVE_SYSINFO): Remove; unused.
diff --git a/nt/configure.bat b/nt/configure.bat
index a60df56fc94..cecf52ee927 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -753,29 +753,36 @@ if %COMPILER% == gcc set MAKECMD=gmake
753if %COMPILER% == cl set MAKECMD=nmake 753if %COMPILER% == cl set MAKECMD=nmake
754 754
755rem Pass on chosen settings to makefiles. 755rem Pass on chosen settings to makefiles.
756rem NB. Be very careful to not have a space before redirection symbols
757rem except when there is a preceding digit, when a space is required.
758rem 756rem
757rem The weird place we put the redirection is to make sure no extra
758rem whitespace winds up at the end of the Make variables, since some
759rem variables, e.g. INSTALL_DIR, cannot stand that. Yes, echo will
760rem write the blanks between the end of command arguments and the
761rem redirection symbol to the file. OTOH, we cannot put the
762rem redirection immediately after the last character of the command,
763rem because environment variable expansion can yield a digit there,
764rem which will then be misinterpreted as the file descriptor to
765rem redirect...
759echo # Start of settings from configure.bat >config.settings 766echo # Start of settings from configure.bat >config.settings
760echo COMPILER=%COMPILER% >>config.settings 767>>config.settings echo COMPILER=%COMPILER%
761if not "(%mf%)" == "()" echo MCPU_FLAG=%mf% >>config.settings 768if not "(%mf%)" == "()" >>config.settings echo MCPU_FLAG=%mf%
762if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo% >>config.settings 769if not "(%dbginfo%)" == "()" >>config.settings echo DEBUG_INFO=%dbginfo%
763if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 770if (%nodebug%) == (Y) >>config.settings echo NODEBUG=1
764if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 771if (%noopt%) == (Y) >>config.settings echo NOOPT=1
765if (%enablechecking%) == (Y) echo ENABLECHECKS=1 >>config.settings 772if (%enablechecking%) == (Y) >>config.settings echo ENABLECHECKS=1
766if (%profile%) == (Y) echo PROFILE=1 >>config.settings 773if (%profile%) == (Y) >>config.settings echo PROFILE=1
767if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 774if (%nocygwin%) == (Y) >>config.settings echo NOCYGWIN=1
768if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings 775if not "(%prefix%)" == "()" >>config.settings echo INSTALL_DIR=%prefix%
769if not "(%distfiles%)" == "()" echo DIST_FILES=%distfiles% >>config.settings 776if not "(%distfiles%)" == "()" >>config.settings echo DIST_FILES=%distfiles%
770rem We go thru docflags because usercflags could be "-DFOO=bar" -something 777rem We go thru docflags because usercflags could be "-DFOO=bar" -something
771rem and the if command cannot cope with this 778rem and the if command cannot cope with this
772for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y 779for %%v in (%usercflags%) do if not (%%v)==() set docflags=Y
773if (%docflags%)==(Y) echo USER_CFLAGS=%usercflags% >>config.settings 780if (%docflags%)==(Y) >>config.settings echo USER_CFLAGS=%usercflags%
774if (%docflags%)==(Y) echo ESC_USER_CFLAGS=%escusercflags% >>config.settings 781if (%docflags%)==(Y) >>config.settings echo ESC_USER_CFLAGS=%escusercflags%
775for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y 782for %%v in (%userldflags%) do if not (%%v)==() set doldflags=Y
776if (%doldflags%)==(Y) echo USER_LDFLAGS=%userldflags% >>config.settings 783if (%doldflags%)==(Y) >>config.settings echo USER_LDFLAGS=%userldflags%
777for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y 784for %%v in (%extrauserlibs%) do if not (%%v)==() set doextralibs=Y
778if (%doextralibs%)==(Y) echo USER_LIBS=%extrauserlibs% >>config.settings 785if (%doextralibs%)==(Y) >>config.settings echo USER_LIBS=%extrauserlibs%
779echo # End of settings from configure.bat>>config.settings 786echo # End of settings from configure.bat>>config.settings
780echo. >>config.settings 787echo. >>config.settings
781 788
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
210CHECKING_CFLAGS = 210CHECKING_CFLAGS =
211endif 211endif
212 212
213MWINDOWS = -mwindows
214
213CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) 215CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
214ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS) 216ESC_CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(PROFILE_CFLAGS) $(ESC_USER_CFLAGS) $(LOCAL_FLAGS)
215EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 217EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1
diff --git a/nt/nmake.defs b/nt/nmake.defs
index 11079b4fb7d..b01e341f2d3 100644
--- a/nt/nmake.defs
+++ b/nt/nmake.defs
@@ -151,6 +151,8 @@ CHECKING_CFLAGS = -DENABLE_CHECKING -DXASSERTS
151CHECKING_CFLAGS = 151CHECKING_CFLAGS =
152!endif 152!endif
153 153
154MWINDOWS = -subsystem:windows -entry:mainCRTStartup
155
154CFLAGS = -I. $(ARCH_CFLAGS) \ 156CFLAGS = -I. $(ARCH_CFLAGS) \
155 $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) 157 $(DEBUG_CFLAGS) $(CHECKING_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS)
156ESC_CFLAGS = -I. $(ARCH_CFLAGS) \ 158ESC_CFLAGS = -I. $(ARCH_CFLAGS) \