]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: enable toolset 11 also in install
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 27 Jun 2022 19:38:03 +0000 (19:38 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 28 Jun 2022 12:44:26 +0000 (12:44 +0000)
This can be surprising but we actually compile things during
the `install` stage of `rpm-build`. The example is the pybind's
`setup.py` which builds `rados_dummy.c`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
ceph.spec.in

index 65007964b3beaa01cd31a935f250ccd0ea64a67a..9bee5e368660ee4fdab3be067d1b16c709db43ed 100644 (file)
@@ -1407,6 +1407,14 @@ popd
 
 
 %install
+
+%if 0%{with seastar}
+%if 0%{?fedora} || 0%{?rhel}
+%undefine _annotated_build
+. /opt/rh/gcc-toolset-11/enable
+%endif
+%endif
+
 pushd %{_vpath_builddir}
 %make_install
 # we have dropped sysvinit bits