2023-12-21 14:02:32 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\unix\library;
|
|
|
|
|
|
2025-06-09 19:32:31 +08:00
|
|
|
use SPC\util\executor\UnixAutoconfExecutor;
|
2023-12-21 14:02:32 +08:00
|
|
|
|
|
|
|
|
trait unixodbc
|
|
|
|
|
{
|
|
|
|
|
protected function build(): void
|
|
|
|
|
{
|
2025-06-09 19:32:31 +08:00
|
|
|
UnixAutoconfExecutor::create($this)
|
|
|
|
|
->configure(
|
|
|
|
|
'--disable-debug',
|
|
|
|
|
'--disable-dependency-tracking',
|
|
|
|
|
"--with-libiconv-prefix={$this->getBuildRootPath()}",
|
|
|
|
|
'--with-included-ltdl',
|
|
|
|
|
'--enable-gui=no',
|
2023-12-21 14:02:32 +08:00
|
|
|
)
|
2025-06-09 19:32:31 +08:00
|
|
|
->make();
|
2023-12-21 14:02:32 +08:00
|
|
|
$this->patchPkgconfPrefix(['odbc.pc', 'odbccr.pc', 'odbcinst.pc']);
|
2025-06-10 19:46:55 +07:00
|
|
|
$this->patchLaDependencyPrefix();
|
2023-12-21 14:02:32 +08:00
|
|
|
}
|
|
|
|
|
}
|