Files
static-php-cli/src/SPC/builder/unix/library/gmp.php

26 lines
643 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
namespace SPC\builder\unix\library;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
trait gmp
{
/**
* @throws FileSystemException
* @throws RuntimeException
*/
protected function build(): void
{
2025-06-09 11:12:34 +08:00
shell()->cd($this->source_dir)->initializeEnv($this)
->exec('./configure --enable-static --disable-shared --with-pic --prefix=')
->exec('make clean')
->exec("make -j{$this->builder->concurrency}")
->exec('make install DESTDIR=' . BUILD_ROOT_PATH);
$this->patchPkgconfPrefix(['gmp.pc']);
}
}