summaryrefslogtreecommitdiffstats
path: root/php-pecl-grpc.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-grpc.spec')
-rw-r--r--php-pecl-grpc.spec6
1 files changed, 6 insertions, 0 deletions
diff --git a/php-pecl-grpc.spec b/php-pecl-grpc.spec
index ac2619d..913751b 100644
--- a/php-pecl-grpc.spec
+++ b/php-pecl-grpc.spec
@@ -38,6 +38,12 @@ Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upst
Patch0: %{pecl_name}-build.patch
Patch1: %{pecl_name}-noatfork.patch
+%if 0%{?rhel} == 7 && 0%{?dtsversion} == 0
+BuildRequires: devtoolset-6-toolchain
+%global dtsversion 6
+%global dtsenable source /opt/rh/devtoolset-6/enable
+%global dtsprefix devtoolset-6-
+%endif
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
BuildRequires: %{?scl_prefix}php-devel >= 7.0