mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +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:
parent
059c32e59c
commit
1437be3a9d
@ -158,10 +158,14 @@
|
|||||||
"ldap"
|
"ldap"
|
||||||
],
|
],
|
||||||
"lib-suggests": [
|
"lib-suggests": [
|
||||||
"openssl"
|
"openssl",
|
||||||
|
"zlib",
|
||||||
|
"gmp",
|
||||||
|
"libsodium"
|
||||||
],
|
],
|
||||||
"ext-suggests": [
|
"ext-suggests": [
|
||||||
"openssl"
|
"openssl",
|
||||||
|
"zlib"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mbregex": {
|
"mbregex": {
|
||||||
|
|||||||
@ -46,7 +46,6 @@
|
|||||||
"type": "filelist",
|
"type": "filelist",
|
||||||
"url": "https://www.openldap.org/software/download/OpenLDAP/openldap-release/",
|
"url": "https://www.openldap.org/software/download/OpenLDAP/openldap-release/",
|
||||||
"regex": "/href=\"(?<file>openldap-(?<version>[^\"]+)\\.tgz)\"/",
|
"regex": "/href=\"(?<file>openldap-(?<version>[^\"]+)\\.tgz)\"/",
|
||||||
"path": "php-src/ext/ldap",
|
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "LICENSE"
|
"path": "LICENSE"
|
||||||
|
|||||||
@ -11,13 +11,18 @@ trait ldap
|
|||||||
shell()->cd($this->source_dir)
|
shell()->cd($this->source_dir)
|
||||||
->exec(
|
->exec(
|
||||||
$this->builder->configure_env . ' ' .
|
$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 ' .
|
' ./configure ' .
|
||||||
'--enable-static ' .
|
'--enable-static ' .
|
||||||
'--disable-shared ' .
|
'--disable-shared ' .
|
||||||
'--disable-slapd ' .
|
'--disable-slapd ' .
|
||||||
|
'--disable-slurpd ' .
|
||||||
'--without-systemd ' .
|
'--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='
|
'--prefix='
|
||||||
)
|
)
|
||||||
->exec('make clean')
|
->exec('make clean')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user