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