mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
remove more unused options
This commit is contained in:
@@ -17,18 +17,12 @@ trait ngtcp2
|
||||
*/
|
||||
protected function build(): void
|
||||
{
|
||||
$available = [
|
||||
$args = $this->builder->makeAutoconfArgs(static::NAME, [
|
||||
'openssl' => null,
|
||||
'libev' => null,
|
||||
'jemalloc' => null,
|
||||
];
|
||||
if (PHP_OS_FAMILY === 'Linux') {
|
||||
$available = [...$available, ...[
|
||||
'zlib' => null,
|
||||
'libxml2' => null,
|
||||
]];
|
||||
}
|
||||
$args = $this->builder->makeAutoconfArgs(static::NAME, $available);
|
||||
'libnghttp3' => null,
|
||||
]);
|
||||
if (PHP_OS_FAMILY === 'Linux') {
|
||||
$args = preg_replace('/OPENSSL_LIBS="(.*?)"/', 'OPENSSL_LIBS="\1 -lpthread -ldl"', $args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user