mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
another way where static extensions would be excluded if also compiled shared
This commit is contained in:
@@ -294,7 +294,7 @@ abstract class BuilderBase
|
|||||||
$ret = [];
|
$ret = [];
|
||||||
foreach ($this->getExts() as $ext) {
|
foreach ($this->getExts() as $ext) {
|
||||||
$arg = $ext->getConfigureArg();
|
$arg = $ext->getConfigureArg();
|
||||||
if ($ext->isBuildShared()) {
|
if ($ext->isBuildShared() && !$ext->isBuildStatic()) {
|
||||||
if (
|
if (
|
||||||
(Config::getExt($ext->getName(), 'type') === 'builtin' &&
|
(Config::getExt($ext->getName(), 'type') === 'builtin' &&
|
||||||
!file_exists(SOURCE_PATH . '/php-src/ext/' . $ext->getName() . '/config.m4')) ||
|
!file_exists(SOURCE_PATH . '/php-src/ext/' . $ext->getName() . '/config.m4')) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user