mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
26 lines
635 B
PHP
26 lines
635 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
|
|
|
trait unixodbc
|
|
{
|
|
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();
|
|
}
|
|
}
|