From 452baab8487d9a560a4b56a6ba2b9b1459c8ce76 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 24 Dec 2020 18:17:57 +0200 Subject: Fix the MinGW build broken by Gnulib update * nt/mingw-cfg.site (gl_cv_func_readlink_trailing_slash) (gl_cv_func_readlink_truncate): Define to "yes" to avoid compiling readlink.c. --- nt/mingw-cfg.site | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nt') diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index 4a77cc20b4e..a9ca20cb155 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -83,6 +83,8 @@ ac_cv_func_readlink=yes ac_cv_func_symlink=yes # Avoid run-time tests of readlink and symlink, which will fail gl_cv_func_readlink_works=yes +gl_cv_func_readlink_trailing_slash=yes +gl_cv_func_readlink_truncate=yes gl_cv_func_symlink_works=yes ac_cv_func_readlinkat=yes ac_cv_func_faccessat=yes -- cgit v1.2.1 From 64513abf3eb5f845f56250ff8dc0ab8a9d193956 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 25 Dec 2020 15:17:19 +0200 Subject: Don't compile Gnulib's 'free' on MinGW * nt/mingw-cfg.site (gl_cv_func_free_preserves_errno): Set to "yes" to avoid compiling Gnulib's free.c in the MinGW build. --- nt/mingw-cfg.site | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nt') diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index a9ca20cb155..96300774871 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site @@ -158,3 +158,7 @@ gl_cv_func_copy_file_range=yes # We don't want to build Emacs so it depends on bcrypt.dll, since then # it will refuse to start on systems where that DLL is absent. gl_cv_lib_assume_bcrypt=no +# Don't build the Gnulib free.c: it is not needed, since the w32 +# implementation of 'free' doesn't touch errno, and it emits a +# compilation warning. +gl_cv_func_free_preserves_errno=yes -- cgit v1.2.1