libs for macos too

This commit is contained in:
Marc Henderkes
2025-11-18 14:35:58 +01:00
parent 81dce02431
commit ecea6c12cd
5 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace SPC\builder\macos\library;
class idn2 extends MacOSLibraryBase
{
use \SPC\builder\unix\library\idn2;
public const NAME = 'idn2';
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace SPC\builder\macos\library;
class libunistring extends MacOSLibraryBase
{
use \SPC\builder\unix\library\libunistring;
public const NAME = 'libunistring';
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace SPC\builder\macos\library;
class psl extends MacOSLibraryBase
{
use \SPC\builder\unix\library\psl;
public const NAME = 'psl';
}

View File

@@ -13,8 +13,15 @@ trait krb5
$this->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',