Skip to content

Commit 96abe84

Browse files
author
Pavel Siska
committed
Spec: Update gcc-c++ dependency for c++20
1 parent 5d56793 commit 96abe84

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pkg/rpm/telemetry.spec.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ License: BSD
77
Source0: %{name}-%{version}.tar.gz
88

99
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
10-
BuildRequires: gcc-c++ >= 8
1110
BuildRequires: make
1211
BuildRequires: git
1312
BuildRequires: fuse3-devel >= 3.2.1
1413
BuildRequires: cmake >= 3.12
1514

15+
%if 0%{?rhel} <= 8
16+
BuildRequires: gcc-toolset-11-gcc-c++
17+
%else
18+
BuildRequires: gcc-c++ >= 11.5
19+
%endif
20+
1621
Requires: fuse3
1722

1823
%description
@@ -23,6 +28,10 @@ telemetry data in your program.
2328
%autosetup
2429

2530
%build
31+
%if 0%{?rhel} <= 8
32+
source /opt/rh/gcc-toolset-11/enable
33+
%endif
34+
2635
%cmake -DCMAKE_BUILD_TYPE=Release
2736
%cmake_build
2837

0 commit comments

Comments
 (0)