mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
29 lines
644 B
PHP
29 lines
644 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace SPC\builder\linux\library;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* gmp is a template library class for unix
|
||
|
|
*/
|
||
|
|
class gmp extends LinuxLibraryBase
|
||
|
|
{
|
||
|
|
public const NAME = 'gmp';
|
||
|
|
|
||
|
|
protected function build()
|
||
|
|
{
|
||
|
|
[,,$destdir] = SEPARATED_PATH;
|
||
|
|
|
||
|
|
shell()->cd($this->source_dir)
|
||
|
|
->exec(
|
||
|
|
"{$this->builder->configure_env} ./configure " .
|
||
|
|
'--enable-static --disable-shared ' .
|
||
|
|
'--prefix='
|
||
|
|
)
|
||
|
|
->exec('make clean')
|
||
|
|
->exec("make -j{$this->builder->concurrency}")
|
||
|
|
->exec("make install DESTDIR={$destdir}");
|
||
|
|
}
|
||
|
|
}
|