openssl: Fix build configuration for riscv64-linux

Without this patch, OpenSSL would use the suboptimal linux-generic32
config when building natively on riscv64.
This commit is contained in:
Zhaofeng Li 2021-10-15 15:36:12 -07:00
parent 0281ba6ace
commit 42dcdc2c3a

View File

@ -75,6 +75,7 @@ let
aarch64-darwin = "./Configure darwin64-arm64-cc";
x86_64-linux = "./Configure linux-x86_64";
x86_64-solaris = "./Configure solaris64-x86_64-gcc";
riscv64-linux = "./Configure linux64-riscv64";
}.${stdenv.hostPlatform.system} or (
if stdenv.hostPlatform == stdenv.buildPlatform
then "./config"