Skip to content

Commit 18ac5ba

Browse files
committed
Fix to build debug builds for el7 32bit
1 parent 1ce62ac commit 18ac5ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
%if 0%{?suse_version} == 1500
4343
%global dist .sl15
4444
%endif
45+
4546
%global source_date_epoch_from_changelog 0
4647
Summary: MySQL database connector for C++
4748
Name: mysql-connector-c++%{?product_suffix}
@@ -116,16 +117,18 @@ Requires: mysql-connector-c++-jdbc = %{version}-%{release}
116117
This package contains the test files necessary to run regression
117118
test suite for MySQL Connector/C++
118119
%endif
119-
%prep
120120

121+
%prep
121122
%setup -q -n mysql-connector-c++%{product_suffix}-%{version}-src
123+
122124
%build
123125

124126
%{?el6:. /opt/rh/devtoolset-8/enable}
125127
%{?el6:export CC=/opt/rh/devtoolset-8/root/usr/bin/gcc}
126128
%{?el6:export CXX=/opt/rh/devtoolset-8/root/usr/bin/g++}
127129

128130
%{?el7:. /opt/rh/devtoolset-9/enable}
131+
%{?el7:export LD_LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib64:$LD_LIBRARY_PATH}
129132
%{?el7:export CC=/opt/rh/devtoolset-9/root/usr/bin/gcc}
130133
%{?el7:export CXX=/opt/rh/devtoolset-9/root/usr/bin/g++}
131134

0 commit comments

Comments
 (0)