Skip to content

Commit e8d1970

Browse files
committed
secure_getenv not available on macos
1 parent 6861e9c commit e8d1970

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/SPC/builder/unix/library/krb5.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ protected function build(): void
2727
'LIBRARY_PATH' => getenv('SPC_LIBRARY_PATH'),
2828
]);
2929
}
30+
$args = [
31+
'--disable-nls',
32+
'--disable-rpath',
33+
'--without-system-verto'];
34+
if (PHP_OS_FAMILY === 'Darwin') {
35+
$args[] = 'ac_cv_func_secure_getenv=no';
36+
}
3037
$make
3138
->optionalLib('ldap', '--with-ldap', '--without-ldap')
3239
->optionalLib('libedit', '--with-libedit', '--without-libedit')
33-
->configure(
34-
'--disable-nls',
35-
'--disable-rpath',
36-
'--disable-silent-rules',
37-
'--without-system-verto',
38-
)
40+
->configure(...$args)
3941
->make();
4042
$this->patchPkgconfPrefix([
4143
'krb5-gssapi.pc',

0 commit comments

Comments
 (0)