aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Popineau2014-01-11 15:36:06 +0200
committerEli Zaretskii2014-01-11 15:36:06 +0200
commite05d3a05bfe8bb14e6f9246d76c7c9134eb101a1 (patch)
treea464c39b791b8b8beb9dc1d61730bbd91754aa33
parentaf05bef2d1985fb9bd8485f3084f3bfe282a911f (diff)
downloademacs-e05d3a05bfe8bb14e6f9246d76c7c9134eb101a1.tar.gz
emacs-e05d3a05bfe8bb14e6f9246d76c7c9134eb101a1.zip
Fix minor build problems related to MinGW64.
configure.ac: Read $srcdir/nt/mingw-cfg.site when $MSYSTEM is "MINGW64" as well. nt/inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64. src/unexw32.c (_start) [__MINGW64__]: Define to __start.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac3
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/inc/ms-w32.h5
-rw-r--r--src/ChangeLog4
-rw-r--r--src/unexw32.c7
6 files changed, 27 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6cf2f87391f..436dcdab5cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12014-01-11 Fabrice Popineau <fabrice.popineau@gmail.com>
2
3 * configure.ac: Read $srcdir/nt/mingw-cfg.site when $MSYSTEM is
4 "MINGW64" as well.
5
12014-01-11 Paul Eggert <eggert@cs.ucla.edu> 62014-01-11 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Merge from gnulib, incorporating: 8 Merge from gnulib, incorporating:
diff --git a/configure.ac b/configure.ac
index b3d28d1d720..8443d168c7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,8 @@ dnl along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24AC_PREREQ(2.65) 24AC_PREREQ(2.65)
25AC_INIT(emacs, 24.3.50) 25AC_INIT(emacs, 24.3.50)
26 26
27if test "x$MSYSTEM" = "xMINGW32" 27dnl We get MINGW64 with MSYS2
28if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64"
28then 29then
29 . $srcdir/nt/mingw-cfg.site 30 . $srcdir/nt/mingw-cfg.site
30 31
diff --git a/nt/ChangeLog b/nt/ChangeLog
index 52582532fb3..551b973b016 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12014-01-11 Fabrice Popineau <fabrice.popineau@supelec.fr>
2
3 * inc/ms-w32.h (pthread_sigmask): Undefine if defined, for MinGW64.
4
12013-12-31 Fabrice Popineau <fabrice.popineau@supelec.fr> 52013-12-31 Fabrice Popineau <fabrice.popineau@supelec.fr>
2 6
3 * inc/ms-w32.h (sys_kill): Fix prototype. 7 * inc/ms-w32.h (sys_kill): Fix prototype.
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 7f523cb74f9..dca3476b2b6 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -388,6 +388,11 @@ extern int sigemptyset (sigset_t *);
388extern int sigaddset (sigset_t *, int); 388extern int sigaddset (sigset_t *, int);
389extern int sigfillset (sigset_t *); 389extern int sigfillset (sigset_t *);
390extern int sigprocmask (int, const sigset_t *, sigset_t *); 390extern int sigprocmask (int, const sigset_t *, sigset_t *);
391/* MinGW64 defines pthread_sigmask as zero in its pthread_signal.h
392 header, but we have an implementation for that function in w32proc.c. */
393#ifdef pthread_sigmask
394#undef pthread_sigmask
395#endif
391extern int pthread_sigmask (int, const sigset_t *, sigset_t *); 396extern int pthread_sigmask (int, const sigset_t *, sigset_t *);
392extern int sigismember (const sigset_t *, int); 397extern int sigismember (const sigset_t *, int);
393extern int setpgrp (int, int); 398extern int setpgrp (int, int);
diff --git a/src/ChangeLog b/src/ChangeLog
index 556fcce5fa5..637164281d4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12014-01-11 Fabrice Popineau <fabrice.popineau@gmail.com>
2
3 * unexw32.c (_start) [__MINGW64__]: Define to __start.
4
12014-01-11 Eli Zaretskii <eliz@gnu.org> 52014-01-11 Eli Zaretskii <eliz@gnu.org>
2 6
3 * xdisp.c (try_window_id): Don't use this function's optimizations 7 * xdisp.c (try_window_id): Don't use this function's optimizations
diff --git a/src/unexw32.c b/src/unexw32.c
index 5411cd2a95c..f70cdd79478 100644
--- a/src/unexw32.c
+++ b/src/unexw32.c
@@ -85,6 +85,13 @@ DWORD_PTR extra_bss_size_static = 0;
85 85
86PIMAGE_SECTION_HEADER heap_section; 86PIMAGE_SECTION_HEADER heap_section;
87 87
88/* MinGW64 doesn't add a leading underscore to external symbols,
89 whereas configure.ac sets up LD_SWITCH_SYSTEM_TEMACS to force the
90 entry point at __start, with two underscores. */
91#ifdef __MINGW64__
92#define _start __start
93#endif
94
88/* Startup code for running on NT. When we are running as the dumped 95/* Startup code for running on NT. When we are running as the dumped
89 version, we need to bootstrap our heap and .bss section into our 96 version, we need to bootstrap our heap and .bss section into our
90 address space before we can actually hand off control to the startup 97 address space before we can actually hand off control to the startup