From fe35bbd0cbd639469e7738855c0fba51c6d81147 Mon Sep 17 00:00:00 2001 From: eeff <33566201+eeff@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:37:06 +0800 Subject: [PATCH] cross-install.sh build openssl for riscv64 --- cross-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cross-install.sh b/cross-install.sh index 723376a9..74a55b73 100755 --- a/cross-install.sh +++ b/cross-install.sh @@ -102,7 +102,11 @@ function build_openssl() { git clone -b OpenSSL_1_1_1 https://github.com/openssl/openssl.git cd openssl mkdir -p $install_dir/openssl/ssl - ./Configure linux-$arch no-asm no-async shared \ + platform=linux-$arch + if [[ "arch" == "riscv64" ]]; then + platform=linux-generic64 + fi + ./Configure $platform no-asm no-async shared \ --prefix=$install_dir \ --openssldir=$install_dir/openssl/ssl \ --cross-compile-prefix=$compile_prefix