From a44e145462296402e870e67f8f9df783d998829b Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 14 May 2023 21:28:36 +0000 Subject: [PATCH] fix powerpc --- crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc | 2 +- .../external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc | 2 +- .../external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc index 3572dfb1c4e3..f5d10d9a59e2 100644 --- a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc +++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/bn.inc @@ -1,4 +1,4 @@ .PATH.S: ${.PARSEDIR} -BN_SRCS = ppc.S ppc-mont.S ppc64-mont.S +BN_SRCS = ppc.S ppc-mont.S ppc64-mont.S bn_ppc.c CPPFLAGS += -DOPENSSL_BN_ASM_MONT .include "../../bn.inc" diff --git a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc index 16bcc2bc19bb..748039ea3ecc 100644 --- a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc +++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/chacha.inc @@ -1,5 +1,5 @@ .PATH.S: ${.PARSEDIR} -CHACHA_SRCS = chacha-ppc.S +CHACHA_SRCS = chacha-ppc.S chacha_ppc.c .include "../../chacha.inc" diff --git a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc index 3b0ff2bf02c8..7b4406aa5818 100644 --- a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc +++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc/crypto.inc @@ -1,4 +1,7 @@ CPUID_SRCS = ppccap.c ppccpuid.S CPPFLAGS += -DOPENSSL_CPUID_OBJ CPUID = yes + +COPTS.threads_pthread.c += -DBROKEN_CLANG_ATOMICS # no atomic 64 bit ops + .include "../../crypto.inc"