]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: move and undef _annotated_build only for rhels.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Jun 2022 01:15:15 +0000 (01:15 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Jun 2022 12:44:26 +0000 (12:44 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
ceph.spec.in

index b3a1f7849d0137320c84da21b1f5e8f8a59dfd9b..65007964b3beaa01cd31a935f250ccd0ea64a67a 100644 (file)
 %endif
 %endif
 
-%if 0%{with seastar}
-# disable -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1, as gcc-toolset-{9,10}-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
-%endif
-
 #################################################################################
 # main package definition
 #################################################################################
@@ -1279,6 +1272,12 @@ export CXXFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g')
 # remove from CFLAGS too because it causes the arrow submodule to fail with:
 #   warning _FORTIFY_SOURCE requires compiling with optimization (-O)
 export CFLAGS=$(echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g')
+%if 0%{?fedora} || 0%{?rhel}
+# disable -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1, as gcc-toolset-{9,10}-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
+%endif
 %endif
 
 env | sort