From a5cacb63082b9e58194c4b9f8b2af2c3e38ff15c Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 2 Jan 2024 17:32:48 +0100 Subject: [PATCH] package/libopenssl: fix s390x build Use linux64-s390x configure target to fix the following s390x build failure raised since bump to version 3.2.0 in commit 973b1eba5a4ee72f040bd471b147267e36be73ad and https://github.com/openssl/openssl/commit/79040cf29e011c21789563d74da626b7465a0540: /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/s390x-buildroot-linux-gnu/13.2.0/../../../../s390x-buildroot-linux-gnu/bin/ld: libcrypto.a(libcrypto-lib-dh_key.o): in function `dh_bn_mod_exp': dh_key.c:(.text+0x3c8): undefined reference to `s390x_mod_exp' /home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/s390x-buildroot-linux-gnu/13.2.0/../../../../s390x-buildroot-linux-gnu/bin/ld: libcrypto.a(libcrypto-lib-rsa_ossl.o): in function `rsa_ossl_s390x_mod_exp': rsa_ossl.c:(.text+0xd2c): undefined reference to `s390x_crt' Fixes: - http://autobuild.buildroot.org/results/77c5e13127de67a69782f138aa28c8b0ad951941 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/libopenssl/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/libopenssl/Config.in b/package/libopenssl/Config.in index 49958d9fd6..0c8db52e2e 100644 --- a/package/libopenssl/Config.in +++ b/package/libopenssl/Config.in @@ -25,6 +25,7 @@ config BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH default "linux-x86_64" if BR2_x86_64 default "linux64-riscv64" if BR2_riscv && BR2_ARCH_IS_64 default "linux32-riscv32" if BR2_riscv && !BR2_ARCH_IS_64 + default "linux64-s390x" if BR2_s390x # no-asm is needed with generic architectures such as # linux-generic{32,64}, see # https://github.com/openssl/openssl/issues/9839