mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-14 04:15:35 +08:00
separate alternative libs
This commit is contained in:
@@ -8,6 +8,13 @@ trait ldap
|
|||||||
{
|
{
|
||||||
protected function build(): void
|
protected function build(): void
|
||||||
{
|
{
|
||||||
|
$alt = '';
|
||||||
|
// openssl support
|
||||||
|
$alt .= $this->builder->getLib('openssl') && $this->builder->getExt('zlib') ? '--with-tls=openssl ' : '';
|
||||||
|
// gmp support
|
||||||
|
$alt .= $this->builder->getLib('gmp') ? '--with-mp=gmp ' : '';
|
||||||
|
// libsodium support
|
||||||
|
$alt .= $this->builder->getLib('libsodium') ? '--with-argon2=libsodium ' : '';
|
||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->exec(
|
->exec(
|
||||||
$this->builder->configure_env . ' ' .
|
$this->builder->configure_env . ' ' .
|
||||||
@@ -19,9 +26,7 @@ trait ldap
|
|||||||
'--disable-slurpd ' .
|
'--disable-slurpd ' .
|
||||||
'--without-systemd ' .
|
'--without-systemd ' .
|
||||||
'--without-cyrus-sasl ' .
|
'--without-cyrus-sasl ' .
|
||||||
($this->builder->getLib('openssl') && $this->builder->getExt('zlib') ? '--with-tls=openssl ' : '') .
|
$alt .
|
||||||
($this->builder->getLib('gmp') ? '--with-mp=gmp ' : '') .
|
|
||||||
($this->builder->getLib('libsodium') ? '--with-argon2=libsodium ' : '') .
|
|
||||||
'--prefix='
|
'--prefix='
|
||||||
)
|
)
|
||||||
->exec('make clean')
|
->exec('make clean')
|
||||||
|
|||||||
Reference in New Issue
Block a user