From 3d3a6ab3ff6c8433cef12d2e8d8b6f07f69d5d7b Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 21 Aug 2019 16:36:06 -0700 Subject: [PATCH] Bring back libatomic-static for RISC-V (riscv64) Signed-off-by: David Abdurachmanov --- qemu.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu.spec b/qemu.spec index 02a87ea..397c7f5 100644 --- a/qemu.spec +++ b/qemu.spec @@ -319,6 +319,10 @@ BuildRequires: /usr/bin/pathfix.py BuildRequires: python3-devel BuildRequires: glibc-static pcre-static glib2-static zlib-static +# if -pthread is used GCC SPEC will add --as-needed -latomic --no-as-needed for linker +%ifarch riscv64 +BuildRequires: libatomic-static +%endif %if 0%{?hostqemu:1} # For complicated reasons, this is required so that