Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ext/dl_test/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions ext/opcache/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -339,7 +339,7 @@ int main(void) {
ZendAccelerator.c
$ZEND_JIT_SRC
]),
[shared],,
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $JIT_CFLAGS],,
[yes])

Expand Down
Loading