mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
secure_getenv not available on macos
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user