We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553c84a commit 318b5d0Copy full SHA for 318b5d0
packaging/mysql-connector-c++.spec.in
@@ -61,7 +61,7 @@ BuildRequires: cmake3
61
%else
62
BuildRequires: cmake
63
%endif
64
-%if 0%{?fedora} || 0%{?suse_version}
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
65
BuildRequires: gcc
66
BuildRequires: gcc-c++
67
@@ -118,8 +118,10 @@ test suite for MySQL Connector/C++
118
%setup -q -n mysql-connector-c++%{product_suffix}-%{version}-src
119
120
%build
121
+%if 0%{?rhel} < 8
122
%{?rhel:export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc}
123
%{?rhel:export CXX=/opt/rh/devtoolset-7/root/usr/bin/g++}
124
+%endif
125
126
%if 0%{?with_tests:1} && 0%{?with_gtest:1}
127
%global __cmake_test_opts -DWITH_TESTS=1 -DWITH_GTEST=%{with_gtest}
0 commit comments