Skip to content

Commit 901da8f

Browse files
committed
remove ldtl from odbc libs private (using built in ltdl)
1 parent e49a5d7 commit 901da8f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/SPC/builder/unix/library/unixodbc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace SPC\builder\unix\library;
66

77
use SPC\exception\WrongUsageException;
8+
use SPC\store\FileSystem;
89
use SPC\util\executor\UnixAutoconfExecutor;
910

1011
trait unixodbc
@@ -31,6 +32,12 @@ protected function build(): void
3132
)
3233
->make();
3334
$this->patchPkgconfPrefix(['odbc.pc', 'odbccr.pc', 'odbcinst.pc']);
35+
foreach (['odbc.pc', 'odbccr.pc', 'odbcinst.pc'] as $file) {
36+
FileSystem::replaceFileStr(
37+
BUILD_LIB_PATH . "/pkgconfig/{$file}.pc",
38+
'$(top_build_prefix)libltdl/libltdlc.la',
39+
'');
40+
}
3441
$this->patchLaDependencyPrefix();
3542
}
3643
}

0 commit comments

Comments
 (0)