diff options
| author | Christoph Scholtes | 2012-02-05 13:40:36 -0700 |
|---|---|---|
| committer | Christoph Scholtes | 2012-02-05 13:40:36 -0700 |
| commit | 7519763363bcb835f5387784bce5251ea1beb71e (patch) | |
| tree | f1ea6be04df33b8d75d63ad6ac8a855acea8d9dc | |
| parent | d452256dd8168b502a22a4af6c6409d7aebc51bd (diff) | |
| download | emacs-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-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/makefile.w32-in | 1 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/gmake.defs | 2 | ||||
| -rw-r--r-- | nt/nmake.defs | 3 |
5 files changed, 14 insertions, 1 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-02-04 Glenn Morris <rgm@gnu.org> | 6 | 2012-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 | ||
| 214 | HAVE_GETOPT_H = HAVE_GETOPT_H | 214 | HAVE_GETOPT_H = HAVE_GETOPT_H |
| 215 | INCLUDE_NEXT = include_next | 215 | INCLUDE_NEXT = include_next |
| 216 | PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header | ||
| 217 | PRAGMA_COLUMNS = | 216 | PRAGMA_COLUMNS = |
| 218 | NEXT_GETOPT_H = <getopt.h> | 217 | NEXT_GETOPT_H = <getopt.h> |
| 219 | ARG_NONNULL_H = ../build-aux/snippet/arg-nonnull.h | 218 | ARG_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 @@ | |||
| 1 | 2012-02-05 Christoph Scholtes <cschol2112@googlemail.com> | 1 | 2012-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 | |||
| 289 | USER_LIBS := $(patsubst %,-l%,$(USER_LIBS)) | 289 | USER_LIBS := $(patsubst %,-l%,$(USER_LIBS)) |
| 290 | endif | 290 | endif |
| 291 | 291 | ||
| 292 | PRAGMA_SYSTEM_HEADER = \#pragma GCC system_header | ||
| 293 | |||
| 292 | ifeq "$(ARCH)" "i386" | 294 | ifeq "$(ARCH)" "i386" |
| 293 | ifdef NOOPT | 295 | ifdef NOOPT |
| 294 | ARCH_CFLAGS = -c $(DEBUG_FLAG) $(NOCYGWIN) | 296 | ARCH_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 | |||
| 203 | D = d | 203 | D = d |
| 204 | !endif | 204 | !endif |
| 205 | 205 | ||
| 206 | # gcc-specific pragma (ignore for MSVC) | ||
| 207 | PRAGMA_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) |