mirror of
https://github.com/ceph/ceph
synced 2024-12-26 05:25:09 +00:00
ceph.spec.in: call %enable_devtoolset11 on centos8
before this change %enable_devtoolset11 is called only when building with crimson on centos8. after this change %enable_devtoolset11 is called when building on centos8. because we've started using gcc-toolset-11 for building rpm packages on centos8 after the C++20 migration. so, to build with gcc-11, we need to enable it. also, because gcc-toolset-11 is used, we have to disable annotated_build. Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
parent
d32a19abe1
commit
336fe86af8
@ -149,15 +149,13 @@
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{with seastar}
|
||||
# disable -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1, as gcc-toolset-{10,11}-annobin
|
||||
# do not provide gcc-annobin.so anymore, despite that they provide annobin.so. but
|
||||
# redhat-rpm-config still passes -fplugin=gcc-annobin to the compiler.
|
||||
%undefine _annotated_build
|
||||
%if 0%{?enable_devtoolset11:1}
|
||||
%if 0%{?rhel} >= 8
|
||||
%enable_devtoolset11
|
||||
%endif
|
||||
%endif
|
||||
|
||||
#################################################################################
|
||||
# main package definition
|
||||
|
Loading…
Reference in New Issue
Block a user