Skip to content

Commit 6155658

Browse files
committed
Fix to update the complier to devtoolset-8
1 parent 385ae3b commit 6155658

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packaging/mysql-connector-c++.spec.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
%{?commercial: %global product_suffix -commercial}
3939
%{!?commercial: %global product_suffix %{nil}}
4040

41-
%{?el6:%global __strip /opt/rh/devtoolset-7/root/usr/bin/strip}
41+
%{?el6:%global __strip /opt/rh/devtoolset-8/root/usr/bin/strip}
4242

4343
%if 0%{?suse_version} == 1315
4444
%global dist .sles12
@@ -67,8 +67,8 @@ BuildRequires: cmake
6767
BuildRequires: gcc
6868
BuildRequires: gcc-c++
6969
%else
70-
BuildRequires: devtoolset-7-gcc
71-
BuildRequires: devtoolset-7-gcc-c++
70+
BuildRequires: devtoolset-8-gcc
71+
BuildRequires: devtoolset-8-gcc-c++
7272
%endif
7373
%{!?mysql_dir:BuildRequires: mysql-devel}
7474
BuildRequires: openssl-devel
@@ -121,8 +121,8 @@ test suite for MySQL Connector/C++
121121

122122
%build
123123
%if 0%{?rhel} < 8
124-
%{?rhel:export CC=/opt/rh/devtoolset-7/root/usr/bin/gcc}
125-
%{?rhel:export CXX=/opt/rh/devtoolset-7/root/usr/bin/g++}
124+
%{?rhel:export CC=/opt/rh/devtoolset-8/root/usr/bin/gcc}
125+
%{?rhel:export CXX=/opt/rh/devtoolset-8/root/usr/bin/g++}
126126
%endif
127127

128128
%if 0%{?with_tests:1} && 0%{?with_gtest:1}

0 commit comments

Comments
 (0)