mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
secure_getenv not available on macos
This commit is contained in:
parent
6861e9c2c7
commit
e8d1970f55
@ -27,15 +27,17 @@ trait krb5
|
|||||||
'LIBRARY_PATH' => getenv('SPC_LIBRARY_PATH'),
|
'LIBRARY_PATH' => getenv('SPC_LIBRARY_PATH'),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
$args = [
|
||||||
|
'--disable-nls',
|
||||||
|
'--disable-rpath',
|
||||||
|
'--without-system-verto'];
|
||||||
|
if (PHP_OS_FAMILY === 'Darwin') {
|
||||||
|
$args[] = 'ac_cv_func_secure_getenv=no';
|
||||||
|
}
|
||||||
$make
|
$make
|
||||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||||
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
||||||
->configure(
|
->configure(...$args)
|
||||||
'--disable-nls',
|
|
||||||
'--disable-rpath',
|
|
||||||
'--disable-silent-rules',
|
|
||||||
'--without-system-verto',
|
|
||||||
)
|
|
||||||
->make();
|
->make();
|
||||||
$this->patchPkgconfPrefix([
|
$this->patchPkgconfPrefix([
|
||||||
'krb5-gssapi.pc',
|
'krb5-gssapi.pc',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user