]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't compile Gnulib's 'free' on MinGW
authorEli Zaretskii <eliz@gnu.org>
Fri, 25 Dec 2020 13:17:19 +0000 (15:17 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Dec 2020 13:17:19 +0000 (15:17 +0200)
* 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

index a9ca20cb1550185530025b1f4cad176a2c884c8b..96300774871875ae1025d7643b4c0888410df0b9 100644 (file)
@@ -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