From a5b0c568dbefddd154f99011d7ce76cfbfadb67a Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Fri, 2 Feb 2024 10:20:55 +0100 Subject: [PATCH] s390x: Fix build on s390x with 'disable-asm' Do not define S390X_MOD_EXP for a NO_ASM build, this would result in unresolved externals for s390x_mod_exp and s390x_crt. Signed-off-by: Ingo Franzki Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23458) --- include/crypto/bn.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/crypto/bn.h b/include/crypto/bn.h index 33f979ce917..48859683fef 100644 --- a/include/crypto/bn.h +++ b/include/crypto/bn.h @@ -116,7 +116,8 @@ OSSL_LIB_CTX *ossl_bn_get_libctx(BN_CTX *ctx); extern const BIGNUM ossl_bn_inv_sqrt_2; -#if defined(OPENSSL_SYS_LINUX) && !defined(FIPS_MODULE) && defined (__s390x__) +#if defined(OPENSSL_SYS_LINUX) && !defined(FIPS_MODULE) && defined (__s390x__) \ + && !defined (OPENSSL_NO_ASM) # define S390X_MOD_EXP #endif -- 2.47.2