mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +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'),
|
||||
]);
|
||||
}
|
||||
$args = [
|
||||
'--disable-nls',
|
||||
'--disable-rpath',
|
||||
'--without-system-verto'];
|
||||
if (PHP_OS_FAMILY === 'Darwin') {
|
||||
$args[] = 'ac_cv_func_secure_getenv=no';
|
||||
}
|
||||
$make
|
||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||
->optionalLib('libedit', '--with-libedit', '--without-libedit')
|
||||
->configure(
|
||||
'--disable-nls',
|
||||
'--disable-rpath',
|
||||
'--disable-silent-rules',
|
||||
'--without-system-verto',
|
||||
)
|
||||
->configure(...$args)
|
||||
->make();
|
||||
$this->patchPkgconfPrefix([
|
||||
'krb5-gssapi.pc',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user