mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
remove extra libraries for php configure/make, since they're the same and only depend on the target libc
This commit is contained in:
@@ -74,6 +74,17 @@ class SPCTarget
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function getRuntimeLibs(): string
|
||||
{
|
||||
if (PHP_OS_FAMILY === 'Linux') {
|
||||
return self::getLibc() === 'musl' ? 'ldl -lpthread -lm' : '-ldl -lrt -lpthread -lm -lresolv -lutil';
|
||||
}
|
||||
if (PHP_OS_FAMILY === 'Darwin') {
|
||||
return '-lresolv';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the libc version if set, for other OS, it will always return null.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user