mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
libs for macos too
This commit is contained in:
parent
81dce02431
commit
ecea6c12cd
@ -322,6 +322,13 @@
|
||||
"headers": [
|
||||
"krb5.h",
|
||||
"gssapi/gssapi.h"
|
||||
],
|
||||
"lib-depends": [
|
||||
"openssl"
|
||||
],
|
||||
"lib-suggests": [
|
||||
"ldap",
|
||||
"libedit"
|
||||
]
|
||||
},
|
||||
"ldap": {
|
||||
|
||||
12
src/SPC/builder/macos/library/idn2.php
Normal file
12
src/SPC/builder/macos/library/idn2.php
Normal 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';
|
||||
}
|
||||
12
src/SPC/builder/macos/library/libunistring.php
Normal file
12
src/SPC/builder/macos/library/libunistring.php
Normal 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';
|
||||
}
|
||||
12
src/SPC/builder/macos/library/psl.php
Normal file
12
src/SPC/builder/macos/library/psl.php
Normal 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';
|
||||
}
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user