mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
explicitly state libphp we built?
This commit is contained in:
@@ -338,6 +338,8 @@ abstract class UnixBuilderBase extends BuilderBase
|
|||||||
}
|
}
|
||||||
|
|
||||||
$config = (new SPCConfigUtil($this))->config($this->ext_list, $this->lib_list, with_dependencies: true);
|
$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 = [
|
$env = [
|
||||||
'CGO_ENABLED' => '1',
|
'CGO_ENABLED' => '1',
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class SPCTarget
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (str_contains($target, '-musl')) {
|
if (str_contains($target, '-musl')) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
if (PHP_OS_FAMILY === 'Linux') {
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
return SystemUtil::isMuslDist();
|
return SystemUtil::isMuslDist();
|
||||||
|
|||||||
Reference in New Issue
Block a user