aports/community/php83-pecl-grpc/boringssl.patch
yzewei ca4664229c community/php83-pecl-grpc: fix build failed on loongarch64
Signed-off-by: yzewei <yangzewei@loongson.cn>
2024-06-05 08:03:37 +00:00

15 lines
579 B
Diff

diff --git a/third_party/boringssl-with-bazel/src/include/openssl/target.h b/third_party/boringssl-with-bazel/src/include/openssl/target.h
index 2760f52..5013b45 100644
--- a/third_party/boringssl-with-bazel/src/include/openssl/target.h
+++ b/third_party/boringssl-with-bazel/src/include/openssl/target.h
@@ -45,6 +45,9 @@
#define OPENSSL_RISCV64
#elif defined(__riscv) && __SIZEOF_POINTER__ == 4
#define OPENSSL_32_BIT
+#elif defined(__loongarch64)
+#define OPENSSL_64_BIT
+#define OPENSSL_LOONGARCH64
#elif defined(__pnacl__)
#define OPENSSL_32_BIT
#define OPENSSL_PNACL