From: Khem Raj Date: Sat, 21 Oct 2023 20:03:52 +0000 (-0700) Subject: Link libatomic on riscv32 X-Git-Tag: openssl-3.1.5~173 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efbf2b9881c62f01047e008c85acb350427b553d;p=thirdparty%2Fopenssl.git Link libatomic on riscv32 GCC toolchains on linux are not able to build libcrypto without linking to libatomic as it does not have all needed atomics implemented as intrinsics Fixes errors like | ld: ./libcrypto.so: undefined reference to `__atomic_is_lock_free' CLA: trivial Signed-off-by: Khem Raj Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/22460) (cherry picked from commit d2e03c60347e19509e18a33ecb7f74502feb42ef) --- diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index aedfa370ca1..ef49354f643 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -823,7 +823,7 @@ my %targets = ( }, "linux32-riscv32" => { - inherit_from => [ "linux-generic32"], + inherit_from => [ "linux-latomic" ], perlasm_scheme => "linux32", asm_arch => 'riscv32', },