From: Ingo Franzki Date: Fri, 2 Feb 2024 09:20:55 +0000 (+0100) Subject: s390x: Fix build on s390x with 'disable-asm' X-Git-Tag: openssl-3.3.0-alpha1~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b0c568dbefddd154f99011d7ce76cfbfadb67a;p=thirdparty%2Fopenssl.git 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) --- 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