Hello!

1、I want to build debian sid package mingw-w64 , I found the mingw-w64 need to add support for loongarch. I have do a simple patch and give a bug to debian ,with this patch we can build the package .

2、I've noticed  debian has do some patch for this  , for example, the "basetsd-debian.patch" located at "debian/patches/basetsd-debian.patch."

Here is the specific part of the patch that adds support for multiple Debian architectures:

--- a/mingw-w64-tools/widl/include/basetsd.h
+++ b/mingw-w64-tools/widl/include/basetsd.h
@@ -311,7 +311,7 @@

 # define WORDS_BIGENDIAN
 #elif defined(__hppa__)
 # undef  WORDS_BIGENDIAN
+#elif defined(__m68k__)
+# define WORDS_BIGENDIAN
+#elif defined(__riscv) && __riscv_xlen == 64
+# undef  WORDS_BIGENDIAN
+#elif defined(__sh__)
+# undef  WORDS_BIGENDIAN
+#elif defined(__sparc__) && defined(__arch64__)
+# define WORDS_BIGENDIAN
 #elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
 # error Unknown CPU architecture!
 #endif

3、If we can include  these changes into the upstream mingw-w64 repository ?

Thanks,

JiaLing,

[0]: https://buildd.debian.org/status/fetch.php?pkg=mingw-w64&arch=loong64&ver=11.0.1-2&stamp=1692597666&raw=0

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051916

[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1051916;filename=basetsd-loongarch.patch;msg=5



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to