~ chicken-core (chicken-5) df3ecdfe37dc3e5d75663ad93bad9dab64e44d0e


commit df3ecdfe37dc3e5d75663ad93bad9dab64e44d0e
Author:     Peter Bex <peter@more-magic.net>
AuthorDate: Wed Jul 7 14:24:18 2021 +0200
Commit:     Peter Bex <peter@more-magic.net>
CommitDate: Wed Jul 7 14:24:18 2021 +0200

    Apply patch from #1768
    
    This is a pretty trivial fix, and I verified it to work on Debian
    using the mingw-w64 cross build toolchain.

diff --git a/Makefile.cross-linux-mingw b/Makefile.cross-linux-mingw
index 929e1402..6d6a690e 100644
--- a/Makefile.cross-linux-mingw
+++ b/Makefile.cross-linux-mingw
@@ -105,7 +105,7 @@ chicken-config.h: chicken-defaults.h
 	echo "#define HAVE_UNISTD_H 1" >>$@
 	echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@
 	echo "#define STDC_HEADERS 1" >>$@
-	echo "#define HAVE_ALLOCA_H 1" >>$@
+	echo "#define HAVE_ALLOCA 1" >>$@
 	echo "#define HAVE_DIRECT_H 1" >>$@
 	echo "#define HAVE_ERRNO_H 1" >>$@
 	echo "#define HAVE_LOADLIBRARY 1" >>$@
diff --git a/NEWS b/NEWS
index 2e254e48..e65f885a 100644
--- a/NEWS
+++ b/NEWS
@@ -71,6 +71,7 @@
   - Auto-configure at build time on most platforms. Cross-compilation
     still requires PLATFORM to be set, and it can still be provided
     manually, but it is no longer required in the common case.
+  - Fix Linux to MingW cross-compilation (#1768, thanks to Théo Cavignac)
 
 - Tools
   - Fixed a bug in chicken-install (#1744) that would cause
Trap