summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-swoole.spec')
-rw-r--r--php-pecl-swoole.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/php-pecl-swoole.spec b/php-pecl-swoole.spec
index 6010c66..1649874 100644
--- a/php-pecl-swoole.spec
+++ b/php-pecl-swoole.spec
@@ -103,10 +103,14 @@ EOF
%build
+# --enable-async-mysql requires mysqlnd, so php >= 5.4
+
peclbuild() {
%configure \
--with-swoole \
+%if "%{php_version}" > "5.4"
--enable-async-mysql \
+%endif
--enable-msgqueue \
--with-php-config=$1
# needed as archive contains some .o