From 955c2e60eb17013707714f680384b9bdcde9ec9d Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 5 Jul 2024 12:52:49 +0200 Subject: [PATCH] Autotools: Add ZEND_ENABLE_STATIC_TSRMLS_CACHE to skeleton (#14827) This enables "Thread Safety Resource Manager Local Storage" static cache for skeleton template for Autotools build. --- ext/skeleton/config.m4.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/skeleton/config.m4.in b/ext/skeleton/config.m4.in index 80e0a84ec7e..088f171bbba 100644 --- a/ext/skeleton/config.m4.in +++ b/ext/skeleton/config.m4.in @@ -90,5 +90,8 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then dnl In case of no dependencies AC_DEFINE(HAVE_%EXTNAMECAPS%, 1, [ Have %EXTNAME% support ]) - PHP_NEW_EXTENSION(%EXTNAME%, %EXTNAME%.c, $ext_shared) + PHP_NEW_EXTENSION([%EXTNAME%], + [%EXTNAME%.c], + [$ext_shared],, + [-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1]) fi