File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,13 @@ Vendor: %{mysql_vendor}
60
60
Source0: https://cdn.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/%{src_dir}.tar.gz
61
61
Source1: https://downloads.sourceforge.net/boost/@
[email protected]
62
62
BuildRequires: cmake >= 2.8.2
63
+ %ifarch aarch64
64
+ BuildRequires: gcc7
65
+ BuildRequires: gcc7-c++
66
+ %else
67
+ BuildRequires: devtoolset-7-gcc
68
+ BuildRequires: devtoolset-7-gcc-c++
69
+ %endif
63
70
BuildRequires: perl
64
71
BuildRequires: perl(Time::HiRes)
65
72
BuildRequires: perl(Env)
@@ -143,6 +150,10 @@ mkdir release
143
150
cd release
144
151
cmake ../%{src_dir} \
145
152
-DBUILD_CONFIG=mysql_release \
153
+ %ifarch aarch64
154
+ -DCMAKE_C_COMPILER=/usr/bin/gcc7 \
155
+ -DCMAKE_CXX_COMPILER=/usr/bin/g++7 \
156
+ %endif
146
157
-DINSTALL_LAYOUT=RPM \
147
158
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
148
159
-DWITH_BOOST=.. \
Original file line number Diff line number Diff line change @@ -107,8 +107,13 @@ Source7: %{compatsrc}
107
107
Source10: https://downloads.sourceforge.net/boost/@
[email protected]
108
108
Source90: filter-provides.sh
109
109
Source91: filter-requires.sh
110
+ %ifarch aarch64
111
+ BuildRequires: gcc7
112
+ BuildRequires: gcc7-c++
113
+ %else
110
114
BuildRequires: devtoolset-7-gcc
111
115
BuildRequires: devtoolset-7-gcc-c++
116
+ %endif
112
117
BuildRequires: cmake >= 2.8.2
113
118
BuildRequires: perl
114
119
%{?el7:BuildRequires: perl(Env)}
@@ -685,6 +690,10 @@ mkdir debug
685
690
optflags=$(echo "%{optflags}" | sed -e 's/-O2 / /' -e 's/-Wp,-D_FORTIFY_SOURCE=2/ /')
686
691
cmake ../%{src_dir} \
687
692
-DBUILD_CONFIG=mysql_release \
693
+ %ifarch aarch64
694
+ -DCMAKE_C_COMPILER=/usr/bin/gcc7 \
695
+ -DCMAKE_CXX_COMPILER=/usr/bin/g++7 \
696
+ %endif
688
697
-DINSTALL_LAYOUT=RPM \
689
698
-DCMAKE_BUILD_TYPE=Debug \
690
699
-DWITH_BOOST=.. \
@@ -727,6 +736,10 @@ mkdir release
727
736
cd release
728
737
cmake ../%{src_dir} \
729
738
-DBUILD_CONFIG=mysql_release \
739
+ %ifarch aarch64
740
+ -DCMAKE_C_COMPILER=/usr/bin/gcc7 \
741
+ -DCMAKE_CXX_COMPILER=/usr/bin/g++7 \
742
+ %endif
730
743
-DINSTALL_LAYOUT=RPM \
731
744
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
732
745
-DWITH_BOOST=.. \
You can’t perform that action at this time.
0 commit comments