This patch to libgo adds a -L option for libatomic when using -pthread. This fixes configure checks for riscv, for which -pthread implies -latomic. This fixes GCC PR 84484. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian