mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
remove more unused options
This commit is contained in:
parent
a0c0555089
commit
560f684f7f
@ -635,9 +635,6 @@
|
||||
],
|
||||
"lib-depends": [
|
||||
"openssl"
|
||||
],
|
||||
"lib-suggests": [
|
||||
"ngtcp2"
|
||||
]
|
||||
},
|
||||
"ngtcp2": {
|
||||
@ -655,6 +652,9 @@
|
||||
],
|
||||
"lib-depends": [
|
||||
"openssl"
|
||||
],
|
||||
"lib-suggests": [
|
||||
"nghttp3"
|
||||
]
|
||||
},
|
||||
"onig": {
|
||||
|
||||
@ -6,22 +6,15 @@ namespace SPC\builder\unix\library;
|
||||
|
||||
use SPC\exception\FileSystemException;
|
||||
use SPC\exception\RuntimeException;
|
||||
use SPC\exception\WrongUsageException;
|
||||
|
||||
trait nghttp3
|
||||
{
|
||||
/**
|
||||
* @throws FileSystemException
|
||||
* @throws RuntimeException
|
||||
* @throws WrongUsageException
|
||||
*/
|
||||
protected function build(): void
|
||||
{
|
||||
$args = $this->builder->makeAutoconfArgs(static::NAME, [
|
||||
'zlib' => null,
|
||||
'openssl' => null,
|
||||
]);
|
||||
|
||||
shell()->cd($this->source_dir)
|
||||
->setEnv([
|
||||
'CFLAGS' => $this->getLibExtraCFlags(),
|
||||
@ -34,7 +27,6 @@ trait nghttp3
|
||||
'--disable-shared ' .
|
||||
'--with-pic ' .
|
||||
'--enable-lib-only ' .
|
||||
$args . ' ' .
|
||||
'--prefix='
|
||||
)
|
||||
->execWithEnv('make clean')
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user