diff --git a/config/lib.json b/config/lib.json index b0520fc5..394649f3 100644 --- a/config/lib.json +++ b/config/lib.json @@ -322,6 +322,13 @@ "headers": [ "krb5.h", "gssapi/gssapi.h" + ], + "lib-depends": [ + "openssl" + ], + "lib-suggests": [ + "ldap", + "libedit" ] }, "ldap": { diff --git a/src/SPC/builder/macos/library/idn2.php b/src/SPC/builder/macos/library/idn2.php new file mode 100644 index 00000000..a41eeeb1 --- /dev/null +++ b/src/SPC/builder/macos/library/idn2.php @@ -0,0 +1,12 @@ +source_dir .= '/src'; shell()->cd($this->source_dir)->exec('autoreconf -if'); UnixAutoconfExecutor::create($this) - ->appendEnv(['LDFLAGS' => '-Wl,--allow-multiple-definition']) - ->configure() + ->appendEnv([ + 'LDFLAGS' => '-Wl,--allow-multiple-definition', + ]) + ->optionalLib('ldap', '--with-ldap', '--without-ldap') + ->optionalLib('libedit', '--with-readline', '--without-readline') + ->configure( + '--disable-nls', + '--disable-rpath', + ) ->make(); $this->patchPkgconfPrefix([ 'krb5-gssapi.pc',