2025-06-09 14:38:45 +07:00

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']);
}
}