[php-src] master: Fix string concatenation in ZEND_JIT_SRC variable (#13740)
| From: | Peter Kokot via GitHub | Date: | Mon, 18 Mar 2024 06:12:19 +0000 |
| Subject: | [php-src] master: Fix string concatenation in ZEND_JIT_SRC variable (#13740) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127768@lists.php.net to get a copy of this message | ||
Author: Peter Kokot (petk)
Committer: GitHub (web-flow)
Pusher: petk
Date: 2024-03-18T06:58:30+01:00
Commit: https://github.com/php/php-src/commit/0aadc7e7ff3217e8139c670b8e6908940382d4ea
Raw diff: https://github.com/php/php-src/commit/0aadc7e7ff3217e8139c670b8e6908940382d4ea.diff
Fix string concatenation in ZEND_JIT_SRC variable (#13740)
The += operator only works in bash shells and when using /bin/sh, for
example in Alpine Linux, the warning is thrown during configuration step
./configure: line 51396: ZEND_JIT_SRC+= jit/ir/ir_disasm.c: not found
Changed paths:
M ext/opcache/config.m4
Diff:
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index 4ac92739dd4c..41619cf67042 100644
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -87,7 +87,7 @@ if test "$PHP_OPCACHE" != "no"; then
AC_DEFINE([HAVE_CAPSTONE], [1], [Capstone is available])
PHP_EVAL_LIBLINE($CAPSTONE_LIBS, OPCACHE_SHARED_LIBADD)
PHP_EVAL_INCLINE($CAPSTONE_CFLAGS)
- ZEND_JIT_SRC+=" jit/ir/ir_disasm.c"
+ ZEND_JIT_SRC="$ZEND_JIT_SRC jit/ir/ir_disasm.c"
],[
AC_MSG_ERROR([capstone >= 3.0 required but not found])
])