mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
19 lines
455 B
PHP
19 lines
455 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
trait libsodium
|
|
{
|
|
protected function build(): void
|
|
{
|
|
$root = BUILD_ROOT_PATH;
|
|
shell()->cd($this->source_dir)
|
|
->exec("{$this->builder->configure_env} ./configure --enable-static --disable-shared --prefix={$root}")
|
|
->exec('make clean')
|
|
->exec("make -j{$this->builder->concurrency}")
|
|
->exec('make install');
|
|
}
|
|
}
|