mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
31 lines
715 B
PHP
31 lines
715 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\unix\library;
|
||
|
|
|
||
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
||
|
|
|
||
|
|
trait krb5
|
||
|
|
{
|
||
|
|
protected function build(): void
|
||
|
|
{
|
||
|
|
$this->source_dir .= '/src';
|
||
|
|
shell()->cd($this->source_dir)->exec('autoreconf -if');
|
||
|
|
UnixAutoconfExecutor::create($this)
|
||
|
|
->appendEnv(['LDFLAGS' => '-Wl,--allow-multiple-definition'])
|
||
|
|
->configure()
|
||
|
|
->make();
|
||
|
|
$this->patchPkgconfPrefix([
|
||
|
|
'krb5-gssapi.pc',
|
||
|
|
'krb5.pc',
|
||
|
|
'kadm-server.pc',
|
||
|
|
'kadm-client.pc',
|
||
|
|
'kdb.pc',
|
||
|
|
'mit-krb5-gssapi.pc',
|
||
|
|
'mit-krb5.pc',
|
||
|
|
'gssrpc.pc',
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|