git: 1cf43b016ea1 - main - graphics/openxr: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jul 2024 15:10:26 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=1cf43b016ea1707a5e5634f407e4b6a6547cc958 commit 1cf43b016ea1707a5e5634f407e4b6a6547cc958 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-07-29 12:50:26 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-07-29 15:10:14 +0000 graphics/openxr: fix build on powerpc /wrkdirs/usr/ports/graphics/openxr/work/OpenXR-SDK-release-1.1.38/src/common/platform_utils.hpp:75:2: error: "No architecture string known!" 75 | #error "No architecture string known!" | ^ --- graphics/openxr/files/patch-src_common_platform__utils.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/graphics/openxr/files/patch-src_common_platform__utils.hpp b/graphics/openxr/files/patch-src_common_platform__utils.hpp new file mode 100644 index 000000000000..25c21871e799 --- /dev/null +++ b/graphics/openxr/files/patch-src_common_platform__utils.hpp @@ -0,0 +1,11 @@ +--- src/common/platform_utils.hpp.orig 2024-07-29 12:32:33 UTC ++++ src/common/platform_utils.hpp +@@ -55,6 +55,8 @@ + #define XR_ARCH_ABI "mips" + #elif defined(__powerpc64__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ + #define XR_ARCH_ABI "ppc64" ++#elif defined(__powerpc__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ ++#define XR_ARCH_ABI "ppc" + #elif defined(__powerpc__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + #define XR_ARCH_ABI "ppc64el" + #elif defined(__s390x__) || defined(__zarch__)