mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
28 lines
573 B
PHP
28 lines
573 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\exception\FileSystemException;
|
|
use SPC\exception\RuntimeException;
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
trait readline
|
|
{
|
|
/**
|
|
* @throws RuntimeException
|
|
* @throws FileSystemException
|
|
*/
|
|
protected function build(): void
|
|
{
|
|
UnixAutoconfExecutor::create($this)
|
|
->configure(
|
|
'--with-curses',
|
|
'--enable-multibyte=yes',
|
|
)
|
|
->make();
|
|
$this->patchPkgconfPrefix(['readline.pc']);
|
|
}
|
|
}
|