mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
# Conflicts: # src/SPC/builder/unix/library/gettext.php # src/SPC/builder/unix/library/libiconv.php # src/SPC/builder/unix/library/libxslt.php
32 lines
793 B
PHP
32 lines
793 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 unixodbc
|
|
{
|
|
/**
|
|
* @throws FileSystemException
|
|
* @throws RuntimeException
|
|
*/
|
|
protected function build(): void
|
|
{
|
|
UnixAutoconfExecutor::create($this)
|
|
->configure(
|
|
'--disable-debug',
|
|
'--disable-dependency-tracking',
|
|
"--with-libiconv-prefix={$this->getBuildRootPath()}",
|
|
'--with-included-ltdl',
|
|
'--enable-gui=no',
|
|
)
|
|
->make();
|
|
$this->patchPkgconfPrefix(['odbc.pc', 'odbccr.pc', 'odbcinst.pc']);
|
|
$this->patchLaDependencyPrefix();
|
|
}
|
|
}
|