build shared extensions before frankenphp

This commit is contained in:
henderkes
2026-06-02 04:00:57 +00:00
parent d52ba59edc
commit 5747a5661e
2 changed files with 4 additions and 3 deletions

View File

@@ -368,7 +368,6 @@ class php extends TargetPackage
return;
}
if (SystemTarget::isUnix()) {
$package->runStage([$this, 'unixBuildSharedExt']);
if ($installer->interactive) {
InteractiveTerm::indicateProgress('Running PHP smoke tests');
}

View File

@@ -552,8 +552,10 @@ trait unix
$package->runStage([$this, 'configureForUnix']);
$package->runStage([$this, 'makeForUnix']);
}
// shared extensions build in php's postInstall (php.php) so they run AFTER
// frankenphp's main-loop build frankenphp links libphp only, not the .so exts.
// shared extensions build before frankenphp so their undefined references are
// collected into libphp's exported dynamic-symbol list.
$package->runStage([$this, 'unixBuildSharedExt']);
}
/**