riscv/linux: Don't add -latomic with -pthread
commit203f3060dd363361b172f7295f42bb6bf5ac0b3b
authorAndreas Schwab <schwab@suse.de>
Sat, 23 Apr 2022 13:48:42 +0000 (23 15:48 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 3 May 2023 11:40:35 +0000 (3 13:40 +0200)
treecba57e46df9d8b760561bbc5757cd68aaf79ccba
parent6313b0457394172b13978b9772d49eea1d68d3a1
riscv/linux: Don't add -latomic with -pthread

Now that we have support for inline subword atomic operations, it is no
longer necessary to link against libatomic.  This also fixes testsuite
failures because the framework does not properly set up the linker flags
for finding libatomic.
The use of atomic operations is also independent of the use of libpthread.

gcc/
* config/riscv/linux.h (LIB_SPEC): Don't redefine.
gcc/config/riscv/linux.h