otherwise we'd have failures like
/opt/compiler-explorer/gcc-trunk-
20220808/bin/../lib/gcc/x86_64-linux-gnu/13.0.0/../../../../x86_64-linux-gnu/bin/ld:
/tmp/ccVlMbVh.o: in function `std::atomic<tagged_ptr>::store(tagged_ptr,
std::memory_order)':
/opt/compiler-explorer/gcc-trunk-
20220808/include/c++/13.0.0/atomic:273:
undefined reference to `__atomic_store_16'
when generating the building system using CMake on fedora 36.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit
7e122341d901c7bf02d388d69058c167626d55b0)
BuildRequires: gcc-c++
%endif
%endif
+%if 0%{?fedora}
+BuildRequires: libatomic
+%endif
%if 0%{with tcmalloc}
# libprofiler did not build on ppc64le until 2.7.90
%if 0%{?fedora} || 0%{?rhel} >= 8
%if 0%{?fedora}
BuildRequires: libubsan
BuildRequires: libasan
-BuildRequires: libatomic
%endif
%if 0%{?rhel}
BuildRequires: gcc-toolset-11-annobin-plugin-gcc