mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Fix missing dash
This commit is contained in:
parent
5f8cd972cd
commit
d7f3005b69
@ -13,11 +13,6 @@ use SPC\exception\WrongUsageException;
|
|||||||
*/
|
*/
|
||||||
class SPCTarget
|
class SPCTarget
|
||||||
{
|
{
|
||||||
public const array LIBC_LIST = [
|
|
||||||
'musl',
|
|
||||||
'glibc',
|
|
||||||
];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether we link the C runtime in statically.
|
* Returns whether we link the C runtime in statically.
|
||||||
*/
|
*/
|
||||||
@ -77,7 +72,7 @@ class SPCTarget
|
|||||||
public static function getRuntimeLibs(): string
|
public static function getRuntimeLibs(): string
|
||||||
{
|
{
|
||||||
if (PHP_OS_FAMILY === 'Linux') {
|
if (PHP_OS_FAMILY === 'Linux') {
|
||||||
return self::getLibc() === 'musl' ? 'ldl -lpthread -lm' : '-ldl -lrt -lpthread -lm -lresolv -lutil';
|
return self::getLibc() === 'musl' ? '-ldl -lpthread -lm' : '-ldl -lrt -lpthread -lm -lresolv -lutil';
|
||||||
}
|
}
|
||||||
if (PHP_OS_FAMILY === 'Darwin') {
|
if (PHP_OS_FAMILY === 'Darwin') {
|
||||||
return '-lresolv';
|
return '-lresolv';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user