mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
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:
parent
035b0c50bc
commit
816aea797b
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue