mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Fix missing dash
This commit is contained in:
parent
5f8cd972cd
commit
d7f3005b69
@ -13,11 +13,6 @@ use SPC\exception\WrongUsageException;
|
||||
*/
|
||||
class SPCTarget
|
||||
{
|
||||
public const array LIBC_LIST = [
|
||||
'musl',
|
||||
'glibc',
|
||||
];
|
||||
|
||||
/**
|
||||
* Returns whether we link the C runtime in statically.
|
||||
*/
|
||||
@ -77,7 +72,7 @@ class SPCTarget
|
||||
public static function getRuntimeLibs(): string
|
||||
{
|
||||
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') {
|
||||
return '-lresolv';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user