-static, not static

This commit is contained in:
DubbleClick 2025-06-29 22:26:30 +07:00
parent 3940f032af
commit 320c21d272

View File

@ -107,7 +107,7 @@ class GlobalEnvManager
self::putenv("{$k}={$v}");
}
}
if (getenv('SPC_LIBC_LINKAGE') === 'static' && getenv('SPC_LIBC') === 'glibc') {
if (getenv('SPC_LIBC_LINKAGE') === '-static' && getenv('SPC_LIBC') === 'glibc') {
self::putenv('SPC_LIBC_LINKAGE_FLAG=');
}
if (str_contains((string) getenv('CC'), 'zig') || str_contains((string) getenv('CXX'), 'zig')) {