mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
24 lines
730 B
PHP
24 lines
730 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
trait attr
|
|
{
|
|
protected function build(): void
|
|
{
|
|
UnixAutoconfExecutor::create($this)
|
|
->appendEnv([
|
|
'CFLAGS' => '-Wno-int-conversion -Wno-implicit-function-declaration',
|
|
])
|
|
->exec('libtoolize --force --copy')
|
|
->exec('./autogen.sh || autoreconf -if')
|
|
->configure('--disable-nls')
|
|
->make('install-attributes_h install-data install-libattr_h install-libLTLIBRARIES install-pkgincludeHEADERS install-pkgconfDATA', with_install: false);
|
|
$this->patchPkgconfPrefix(['libattr.pc'], PKGCONF_PATCH_PREFIX);
|
|
}
|
|
}
|