]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
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:23:01 +0000 (15:23 +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)

(cherry picked from commit d2e03c60347e19509e18a33ecb7f74502feb42ef)

Configurations/10-main.conf

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