add extra runtime objects for shared libraries built directly by php make too

This commit is contained in:
DubbleClick
2025-07-19 15:10:42 +07:00
parent fff23649cf
commit 01887d652c
13 changed files with 36 additions and 8 deletions

View File

@@ -14,6 +14,7 @@ class swoole extends Extension
{
public function patchBeforeMake(): bool
{
$patched = parent::patchBeforeMake();
if ($this->builder instanceof MacOSBuilder) {
// Fix swoole with event extension <util.h> conflict bug
$util_path = shell()->execWithResult('xcrun --show-sdk-path', false)[1][0] . '/usr/include/util.h';
@@ -24,7 +25,7 @@ class swoole extends Extension
);
return true;
}
return false;
return $patched;
}
public function getExtVersion(): ?string