Link libatomic on riscv32
authorKhem Raj <raj.khem@gmail.com>
Sat, 21 Oct 2023 20:03:52 +0000 (13:03 -0700)
committerHugo Landau <hlandau@openssl.org>
Thu, 26 Oct 2023 14:22:20 +0000 (15:22 +0100)
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 <raj.khem@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22460)

Configurations/10-main.conf

index 46094f59c290868dd23d6da471689c8e2ca38914..d1a15a1152747b4197d8cd7ff00bd4a30e60eaaa 100644 (file)
@@ -816,7 +816,7 @@ my %targets = (
     },
 
     "linux32-riscv32" => {
-        inherit_from     => [ "linux-generic32"],
+        inherit_from     => [ "linux-latomic" ],
         perlasm_scheme   => "linux32",
         asm_arch         => 'riscv32',
     },