mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
explicitly state libphp we built?
This commit is contained in:
parent
b12cb3350f
commit
67277ccc21
@ -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',
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user