mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
27 lines
662 B
PHP
27 lines
662 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
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='
|
|
)
|
|
->exec('make clean')
|
|
->exec("make -j{$this->builder->concurrency}")
|
|
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
|
|
|
|
$this->patchLaDependencyPrefix(['libiconv.la']);
|
|
}
|
|
}
|