for better performance.
Signed-off-by: Kefu Chai <kchai@redhat.com>
BuildRequires: cmake
BuildRequires: cryptsetup
BuildRequires: fuse-devel
+%if 0%{?rhel} == 7
+# devtoolset offers newer make and valgrind-devel, but the old ones are good
+# enough.
+BuildRequires: devtoolset-7-gcc-c++
+%else
BuildRequires: gcc-c++
+%endif
BuildRequires: gdbm
%if 0%{with tcmalloc}
BuildRequires: gperftools-devel >= 2.4
%autosetup -p1 -n @TARBALL_BASENAME@
%build
+
+%if 0%{?rhel} == 7
+. /opt/rh/devtoolset-7/enable
+%endif
+
%if 0%{with cephfs_java}
# Find jni.h
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do