explicitly state libphp we built?

This commit is contained in:
DubbleClick 2025-07-05 21:54:36 +07:00
parent b12cb3350f
commit 67277ccc21
2 changed files with 3 additions and 1 deletions

View File

@ -338,6 +338,8 @@ abstract class UnixBuilderBase extends BuilderBase
}
$config = (new SPCConfigUtil($this))->config($this->ext_list, $this->lib_list, with_dependencies: true);
$libphp = getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared' ? 'libphp.so' : 'libphp.a';
$config['libs'] = str_replace('-lphp', BUILD_LIB_PATH . '/' . $libphp, $config['libs']);
$env = [
'CGO_ENABLED' => '1',

View File

@ -43,7 +43,7 @@ class SPCTarget
return false;
}
if (str_contains($target, '-musl')) {
return false;
return true;
}
if (PHP_OS_FAMILY === 'Linux') {
return SystemUtil::isMuslDist();