From 566b3e4b490a8d7cdbe21dbb5de892681a95b21f 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 8d17854c..e5440e05 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