Autotools: Mark always-shared extensions with ext_shared variable (#15739)

This makes future config.m4 files changes simpler in case of adding
additional checks, macro calls etc. Or if these extensions configuration
would change at some point.
This commit is contained in:
Peter Kokot 2024-09-04 23:28:29 +02:00 committed by GitHub
parent 035b0c50bc
commit 816aea797b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -4,8 +4,11 @@ PHP_ARG_ENABLE([dl-test],
[Enable dl_test extension])])
if test "$PHP_DL_TEST" != "no"; then
dnl Always build as shared extension.
ext_shared=yes
PHP_NEW_EXTENSION([dl_test],
[dl_test.c],
[shared],,
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
fi

View file

@ -26,7 +26,7 @@ PHP_ARG_WITH([capstone],
[no])
if test "$PHP_OPCACHE" != "no"; then
dnl Always build as shared extension
dnl Always build as shared extension.
ext_shared=yes
AS_VAR_IF([PHP_HUGE_CODE_PAGES], [yes],
@ -339,7 +339,7 @@ int main(void) {
ZendAccelerator.c
$ZEND_JIT_SRC
]),
[shared],,
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $JIT_CFLAGS],,
[yes])