aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-09-19 20:31:02 +0300
committerEli Zaretskii2017-09-19 20:31:02 +0300
commit7b3d1c6beb54ef6c423a93df88aebfd6fecbe2c2 (patch)
treeebd80cb577de50e9b99233c623fc99733f9e3c20
parentc83d0c5fdfd374d5c2e1547d05f02ab3b47a4a5a (diff)
downloademacs-7b3d1c6beb54ef6c423a93df88aebfd6fecbe2c2.tar.gz
emacs-7b3d1c6beb54ef6c423a93df88aebfd6fecbe2c2.zip
Fix MinGW64 build broken by recent MinGW64 import libraries
* configure.ac (W32_LIBS): Put -lusp10 before -lgdi32, as latest MinGW64 import libraries require that. (Bug#28493) * src/Makefile.in: Adjust commentary to the new order of w32 libraries.
-rw-r--r--configure.ac8
-rw-r--r--src/Makefile.in2
2 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 6452038d1b9..0b0bb5e144b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2077,15 +2077,15 @@ if test "${HAVE_W32}" = "yes"; then
2077 AC_SUBST(comma_space_version) 2077 AC_SUBST(comma_space_version)
2078 AC_CONFIG_FILES([nt/emacs.rc nt/emacsclient.rc]) 2078 AC_CONFIG_FILES([nt/emacs.rc nt/emacsclient.rc])
2079 if test "${opsys}" = "cygwin"; then 2079 if test "${opsys}" = "cygwin"; then
2080 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32" 2080 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lusp10 -lgdi32"
2081 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool" 2081 W32_LIBS="$W32_LIBS -lole32 -lcomdlg32 -lcomctl32 -lwinspool"
2082 # Tell the linker that emacs.res is an object (which we compile from 2082 # Tell the linker that emacs.res is an object (which we compile from
2083 # the rc file), not a linker script. 2083 # the rc file), not a linker script.
2084 W32_RES_LINK="-Wl,emacs.res" 2084 W32_RES_LINK="-Wl,emacs.res"
2085 else 2085 else
2086 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o" 2086 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
2087 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32" 2087 W32_LIBS="$W32_LIBS -lwinmm -lusp10 -lgdi32 -lcomdlg32"
2088 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10" 2088 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32"
2089 W32_RES_LINK="\$(EMACSRES)" 2089 W32_RES_LINK="\$(EMACSRES)"
2090 CLIENTRES="emacsclient.res" 2090 CLIENTRES="emacsclient.res"
2091 CLIENTW="emacsclientw\$(EXEEXT)" 2091 CLIENTW="emacsclientw\$(EXEEXT)"
diff --git a/src/Makefile.in b/src/Makefile.in
index 0e55ad4bb29..9a8c9c85f04 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -280,7 +280,7 @@ GNU_OBJC_CFLAGS=$(patsubst -specs=%-hardened-cc1,,@GNU_OBJC_CFLAGS@)
280## w32xfns.o w32select.o image.o w32uniscribe.o if HAVE_W32, else 280## w32xfns.o w32select.o image.o w32uniscribe.o if HAVE_W32, else
281## empty. 281## empty.
282W32_OBJ=@W32_OBJ@ 282W32_OBJ=@W32_OBJ@
283## -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32 lusp10 -lcomctl32 283## -lkernel32 -luser32 -lusp10 -lgdi32 -lole32 -lcomdlg32 -lcomctl32
284## --lwinspool if HAVE_W32, else empty. 284## --lwinspool if HAVE_W32, else empty.
285W32_LIBS=@W32_LIBS@ 285W32_LIBS=@W32_LIBS@
286 286