mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
gmp and libsodium for ldap if enabled
only enable openssl when zlib ext is also enabled (missing 'deflate' otherwise) move back from source/php-src/ext/ldap to source/ldap (fix "LICENSE not found")
This commit is contained in:
@@ -11,13 +11,18 @@ trait ldap
|
||||
shell()->cd($this->source_dir)
|
||||
->exec(
|
||||
$this->builder->configure_env . ' ' .
|
||||
'LDFLAGS="-static"' .
|
||||
'CC="musl-gcc -I' . BUILD_INCLUDE_PATH . '" ' .
|
||||
'LDFLAGS="-static -L' . BUILD_LIB_PATH . '" ' .
|
||||
($this->builder->getLib('openssl') && $this->builder->getExt('zlib') ? 'LIBS="-lssl -lcrypto -lz" ' : '') .
|
||||
' ./configure ' .
|
||||
'--enable-static ' .
|
||||
'--disable-shared ' .
|
||||
'--disable-slapd ' .
|
||||
'--disable-slurpd ' .
|
||||
'--without-systemd ' .
|
||||
($this->builder->getLib('openssl') ? '--with-tls=openssl ' : '') .
|
||||
($this->builder->getLib('openssl') && $this->builder->getExt('zlib') ? '--with-tls=openssl ' : '') .
|
||||
($this->builder->getLib('gmp') ? '--with-mp=gmp ' : '') .
|
||||
($this->builder->getLib('libsodium') ? '--with-argon2=libsodium ' : '') .
|
||||
'--prefix='
|
||||
)
|
||||
->exec('make clean')
|
||||
|
||||
Reference in New Issue
Block a user