Fix missing dash

This commit is contained in:
crazywhalecc
2025-07-05 10:49:20 +08:00
parent 5f8cd972cd
commit d7f3005b69

View File

@@ -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';