see https://bugs.centos.org/view.php?id=14078
Signed-off-by: Kefu Chai <kchai@redhat.com>
%if 0%{?rhel} == 7
# devtoolset offers newer make and valgrind-devel, but the old ones are good
# enough.
-%ifarch x86_64
-BuildRequires: devtoolset-7-gcc-c++
-%endif
-%ifarch aarch64
-%if 0%{?centos}
-BuildRequires: devtoolset-6-gcc-c++
-%else
BuildRequires: devtoolset-7-gcc-c++
-%endif
-%endif
%else
BuildRequires: gcc-c++
%endif
%build
%if 0%{?rhel} == 7
-%ifarch x86_64
-. /opt/rh/devtoolset-7/enable
-%endif
-%ifarch aarch64
-%if 0%{?centos}
-. /opt/rh/devtoolset-6/enable
-%else
. /opt/rh/devtoolset-7/enable
%endif
-%endif
-%endif
%if 0%{with cephfs_java}
# Find jni.h