Skip to content

Commit

Permalink
Autotools: Add ZEND_ENABLE_STATIC_TSRMLS_CACHE to skeleton (php#14827)
Browse files Browse the repository at this point in the history
This enables "Thread Safety Resource Manager Local Storage" static
cache for skeleton template for Autotools build.
  • Loading branch information
petk authored Jul 5, 2024
1 parent 27879fb commit 955c2e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/skeleton/config.m4.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 955c2e6

Please sign in to comment.