From 901da8fa41268a8850af08dcee84004972ea48a8 Mon Sep 17 00:00:00 2001 From: henderkes Date: Wed, 11 Mar 2026 09:43:02 +0700 Subject: [PATCH] remove ldtl from odbc libs private (using built in ltdl) --- src/SPC/builder/unix/library/unixodbc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SPC/builder/unix/library/unixodbc.php b/src/SPC/builder/unix/library/unixodbc.php index 9a3cb63d..41cc4cbe 100644 --- a/src/SPC/builder/unix/library/unixodbc.php +++ b/src/SPC/builder/unix/library/unixodbc.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace SPC\builder\unix\library; use SPC\exception\WrongUsageException; +use SPC\store\FileSystem; use SPC\util\executor\UnixAutoconfExecutor; trait unixodbc @@ -31,6 +32,12 @@ trait unixodbc ) ->make(); $this->patchPkgconfPrefix(['odbc.pc', 'odbccr.pc', 'odbcinst.pc']); + foreach (['odbc.pc', 'odbccr.pc', 'odbcinst.pc'] as $file) { + FileSystem::replaceFileStr( + BUILD_LIB_PATH . "/pkgconfig/{$file}.pc", + '$(top_build_prefix)libltdl/libltdlc.la', + ''); + } $this->patchLaDependencyPrefix(); } }