mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
add required libs to krb5
This commit is contained in:
parent
ecea6c12cd
commit
1fed8f2802
@ -722,6 +722,7 @@
|
|||||||
"type": "filelist",
|
"type": "filelist",
|
||||||
"url": "https://ftp.gnu.org/gnu/libunistring/",
|
"url": "https://ftp.gnu.org/gnu/libunistring/",
|
||||||
"regex": "/href=\"(?<file>libunistring-(?<version>[^\"]+)\\.tar\\.gz)\"/",
|
"regex": "/href=\"(?<file>libunistring-(?<version>[^\"]+)\\.tar\\.gz)\"/",
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYING.LIB"
|
"path": "COPYING.LIB"
|
||||||
@ -740,6 +741,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/static-php/libuuid.git",
|
"url": "https://github.com/static-php/libuuid.git",
|
||||||
"rev": "master",
|
"rev": "master",
|
||||||
|
"provide-pre-built": true,
|
||||||
"license": {
|
"license": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"path": "COPYING"
|
"path": "COPYING"
|
||||||
|
|||||||
@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace SPC\builder\unix\library;
|
namespace SPC\builder\unix\library;
|
||||||
|
|
||||||
use SPC\util\executor\UnixAutoconfExecutor;
|
use SPC\util\executor\UnixAutoconfExecutor;
|
||||||
|
use SPC\util\SPCConfigUtil;
|
||||||
|
|
||||||
trait krb5
|
trait krb5
|
||||||
{
|
{
|
||||||
@ -12,8 +13,12 @@ trait krb5
|
|||||||
{
|
{
|
||||||
$this->source_dir .= '/src';
|
$this->source_dir .= '/src';
|
||||||
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
||||||
|
$libs = array_map(fn ($x) => $x->getName(), $this->getDependencies(true));
|
||||||
|
$spc = new SPCConfigUtil($this->builder, ['no_php' => true, 'libs_only_deps' => true]);
|
||||||
|
$config = $spc->config(libraries: $libs, include_suggest_lib: $this->builder->getOption('with-suggested-libs', false));
|
||||||
UnixAutoconfExecutor::create($this)
|
UnixAutoconfExecutor::create($this)
|
||||||
->appendEnv([
|
->appendEnv([
|
||||||
|
'LIBS' => $config['libs'],
|
||||||
'LDFLAGS' => '-Wl,--allow-multiple-definition',
|
'LDFLAGS' => '-Wl,--allow-multiple-definition',
|
||||||
])
|
])
|
||||||
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
->optionalLib('ldap', '--with-ldap', '--without-ldap')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user