From d7f3005b6968da90f61ada2ef40004ec904d7915 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 5 Jul 2025 10:49:20 +0800 Subject: [PATCH] Fix missing dash --- src/SPC/util/SPCTarget.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/SPC/util/SPCTarget.php b/src/SPC/util/SPCTarget.php index 96bff7b6..de487f4f 100644 --- a/src/SPC/util/SPCTarget.php +++ b/src/SPC/util/SPCTarget.php @@ -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';