From 8e38f6d1c6eb682f14e87fa6ea282f872e883d2d Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc <365207+arnaud-lb@users.noreply.github.com> Date: Tue, 29 Jul 2025 13:36:30 +0200 Subject: [PATCH] Fix out of tree builds (#19283) --- ext/opcache/config.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4 index 5816a25fcd1..75a5a219cb5 100644 --- a/ext/opcache/config.m4 +++ b/ext/opcache/config.m4 @@ -356,6 +356,9 @@ AS_VAR_IF([PHP_OPCACHE_JIT], [yes], [ $ext_builddir/jit $ext_builddir/jit/ir ]) + AS_VAR_IF([PHP_THREAD_SAFETY], [yes], [ + PHP_ADD_BUILD_DIR([$ext_builddir/jit/tls]) + ]) PHP_ADD_MAKEFILE_FRAGMENT([$ext_srcdir/jit/Makefile.frag]) ]) PHP_SUBST([OPCACHE_SHARED_LIBADD])