]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add libatomic to BuildRequires on fedora
authorKefu Chai <tchaikov@gmail.com>
Mon, 8 Aug 2022 12:40:52 +0000 (20:40 +0800)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 10 Aug 2022 20:14:20 +0000 (16:14 -0400)
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)

ceph.spec.in

index 7686c01841e61baefd80714b5a54cf058eb96bfd..d975f60e04665ecde9f541715c5eda2690993e3c 100644 (file)
@@ -214,6 +214,9 @@ BuildRequires:      gcc11-c++
 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
@@ -326,7 +329,6 @@ BuildRequires:  systemtap-sdt-devel
 %if 0%{?fedora}
 BuildRequires:  libubsan
 BuildRequires:  libasan
-BuildRequires:  libatomic
 %endif
 %if 0%{?rhel}
 BuildRequires:  gcc-toolset-11-annobin-plugin-gcc