another way where static extensions would be excluded if also compiled shared

This commit is contained in:
DubbleClick 2025-05-25 15:52:11 +07:00
parent 234df8d11f
commit c972a94876

View File

@ -294,7 +294,7 @@ abstract class BuilderBase
$ret = [];
foreach ($this->getExts() as $ext) {
$arg = $ext->getConfigureArg();
if ($ext->isBuildShared()) {
if ($ext->isBuildShared() && !$ext->isBuildStatic()) {
if (
(Config::getExt($ext->getName(), 'type') === 'builtin' &&
!file_exists(SOURCE_PATH . '/php-src/ext/' . $ext->getName() . '/config.m4')) ||