Source: ogre-1.9
Version: 1.9.0+dfsg1-14
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: loong64
Dear maintainers,
Compiling the ogre-1.9 package failed for loong64 in the Debian Package
Auto-Building environment.
The full compilation log can be found at
https://buildd.debian.org/status/package.php?p=ogre-1.9&suite=sid
Please consider the patch I have attached.
And the ogre-1.9 source package was compiled successfully on my local
loong64 rootfs environment.
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang
Description: Add support for loongarch64
Last-Update: 2023-12-06
--- ogre-1.9-1.9.0+dfsg1.orig/OgreMain/include/OgrePlatform.h
+++ ogre-1.9-1.9.0+dfsg1/OgreMain/include/OgrePlatform.h
@@ -166,7 +166,7 @@ namespace Ogre {
#endif
/* Find the arch type */
-#if defined(__x86_64__) || defined(_M_X64) || defined(__powerpc64__) || defined(__alpha__) || defined(__ia64__) || defined(__s390__) || defined(__s390x__) || defined(__arm64__) || defined(__aarch64__) || defined(__mips64) || defined(__mips64_) || (defined(__riscv) && (__riscv_xlen == 64))
+#if defined(__x86_64__) || defined(_M_X64) || defined(__powerpc64__) || defined(__alpha__) || defined(__ia64__) || defined(__s390__) || defined(__s390x__) || defined(__arm64__) || defined(__aarch64__) || defined(__loongarch64) || defined(__mips64) || defined(__mips64_) || (defined(__riscv) && (__riscv_xlen == 64))
# define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_64
#else
# define OGRE_ARCH_TYPE OGRE_ARCHITECTURE_32