aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Scholtes2012-02-05 13:40:36 -0700
committerChristoph Scholtes2012-02-05 13:40:36 -0700
commit7519763363bcb835f5387784bce5251ea1beb71e (patch)
treef1ea6be04df33b8d75d63ad6ac8a855acea8d9dc
parentd452256dd8168b502a22a4af6c6409d7aebc51bd (diff)
downloademacs-7519763363bcb835f5387784bce5251ea1beb71e.tar.gz
emacs-7519763363bcb835f5387784bce5251ea1beb71e.zip
* lib/makefile.w32-in (PRAGMA_SYSTEM_HEADER): Move to platform
specific makefiles to support getopt_.h generation with MSVC. * nt/gmake.defs (PRAGMA_SYSTEM_HEADER): Add for GCC. * nt/nmake.defs (PRAGMA_SYSTEM_HEADER): Add, but ignore with MSVC.
-rw-r--r--ChangeLog5
-rw-r--r--lib/makefile.w32-in1
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/gmake.defs2
-rw-r--r--nt/nmake.defs3
5 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9712a2f0d0f..f36c25ba5a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12012-02-05 Christoph Scholtes <cschol2112@googlemail.com>
2
3 * lib/makefile.w32-in (PRAGMA_SYSTEM_HEADER): Move to platform
4 specific makefiles to support getopt_.h generation with MSVC.
5
12012-02-04 Glenn Morris <rgm@gnu.org> 62012-02-04 Glenn Morris <rgm@gnu.org>
2 7
3 * Makefile.in (uninstall): 8 * Makefile.in (uninstall):
diff --git a/lib/makefile.w32-in b/lib/makefile.w32-in
index ccc0cf6a595..3600406ac13 100644
--- a/lib/makefile.w32-in
+++ b/lib/makefile.w32-in
@@ -213,7 +213,6 @@ getopt_.h-SH: doit
213 213
214HAVE_GETOPT_H = HAVE_GETOPT_H 214HAVE_GETOPT_H = HAVE_GETOPT_H
215INCLUDE_NEXT = include_next 215INCLUDE_NEXT = include_next
216PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header
217PRAGMA_COLUMNS = 216PRAGMA_COLUMNS =
218NEXT_GETOPT_H = <getopt.h> 217NEXT_GETOPT_H = <getopt.h>
219ARG_NONNULL_H = ../build-aux/snippet/arg-nonnull.h 218ARG_NONNULL_H = ../build-aux/snippet/arg-nonnull.h
diff --git a/nt/ChangeLog b/nt/ChangeLog
index ce3322c8f00..f34fe11084c 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,5 +1,9 @@
12012-02-05 Christoph Scholtes <cschol2112@googlemail.com> 12012-02-05 Christoph Scholtes <cschol2112@googlemail.com>
2 2
3 * gmake.defs (PRAGMA_SYSTEM_HEADER): Add for GCC.
4
5 * nmake.defs (PRAGMA_SYSTEM_HEADER): Add, but ignore with MSVC.
6
3 * makefile.w32-in (maybe-copy-distfiles) 7 * makefile.w32-in (maybe-copy-distfiles)
4 (maybe-copy-distfiles-CMD, maybe-copy-distfiles-SH) 8 (maybe-copy-distfiles-CMD, maybe-copy-distfiles-SH)
5 (create-tmp-dist-dir): Added to make --distfiles optional. 9 (create-tmp-dist-dir): Added to make --distfiles optional.
diff --git a/nt/gmake.defs b/nt/gmake.defs
index e58ee4f3213..6839b28b975 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -289,6 +289,8 @@ ifdef USER_LIBS
289USER_LIBS := $(patsubst %,-l%,$(USER_LIBS)) 289USER_LIBS := $(patsubst %,-l%,$(USER_LIBS))
290endif 290endif
291 291
292PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header
293
292ifeq "$(ARCH)" "i386" 294ifeq "$(ARCH)" "i386"
293ifdef NOOPT 295ifdef NOOPT
294ARCH_CFLAGS = -c $(DEBUG_FLAG) $(NOCYGWIN) 296ARCH_CFLAGS = -c $(DEBUG_FLAG) $(NOCYGWIN)
diff --git a/nt/nmake.defs b/nt/nmake.defs
index a143fe65fac..2cb3113ca9a 100644
--- a/nt/nmake.defs
+++ b/nt/nmake.defs
@@ -203,6 +203,9 @@ DEBUG_LINK = -debug
203D = d 203D = d
204!endif 204!endif
205 205
206# gcc-specific pragma (ignore for MSVC)
207PRAGMA_SYSTEM_HEADER =
208
206!if "$(ARCH)" == "i386" 209!if "$(ARCH)" == "i386"
207!ifdef NOOPT 210!ifdef NOOPT
208#ARCH_CFLAGS = -nologo -c -Zel -W2 -H63 -Od -G3d -Zp8 $(DEBUG_FLAG) 211#ARCH_CFLAGS = -nologo -c -Zel -W2 -H63 -Od -G3d -Zp8 $(DEBUG_FLAG)