mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
Add autoconf executor
This commit is contained in:
@@ -4,23 +4,18 @@ declare(strict_types=1);
|
||||
|
||||
namespace SPC\builder\unix\library;
|
||||
|
||||
use SPC\util\executor\UnixAutoconfExecutor;
|
||||
|
||||
trait libiconv
|
||||
{
|
||||
protected function build(): void
|
||||
{
|
||||
shell()->cd($this->source_dir)->initializeEnv($this)
|
||||
->exec(
|
||||
'./configure ' .
|
||||
'--enable-static ' .
|
||||
'--disable-shared ' .
|
||||
'--enable-pic ' .
|
||||
'--enable-extra-encodings ' .
|
||||
'--prefix='
|
||||
UnixAutoconfExecutor::create($this)
|
||||
->configure(
|
||||
'--enable-pic',
|
||||
'--enable-extra-encodings',
|
||||
)
|
||||
->exec('make clean')
|
||||
->exec("make -j{$this->builder->concurrency}")
|
||||
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
||||
|
||||
->make();
|
||||
$this->patchLaDependencyPrefix(['libiconv.la']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user