This commit is contained in:
henderkes 2026-03-11 09:45:56 +07:00
parent 901da8fa41
commit ef4b2997a7
2 changed files with 5 additions and 4 deletions

View File

@ -31,10 +31,11 @@ trait unixodbc
'--enable-gui=no', '--enable-gui=no',
) )
->make(); ->make();
$this->patchPkgconfPrefix(['odbc.pc', 'odbccr.pc', 'odbcinst.pc']); $pkgConfigs = ['odbc.pc', 'odbccr.pc', 'odbcinst.pc'];
foreach (['odbc.pc', 'odbccr.pc', 'odbcinst.pc'] as $file) { $this->patchPkgconfPrefix($pkgConfigs);
foreach ($pkgConfigs as $file) {
FileSystem::replaceFileStr( FileSystem::replaceFileStr(
BUILD_LIB_PATH . "/pkgconfig/{$file}.pc", BUILD_LIB_PATH . "/pkgconfig/{$file}",
'$(top_build_prefix)libltdl/libltdlc.la', '$(top_build_prefix)libltdl/libltdlc.la',
''); '');
} }

View File

@ -50,7 +50,7 @@ $prefer_pre_built = false;
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) { $extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'grpc', 'Linux', 'Darwin' => 'pdo_odbc',
'Windows' => 'com_dotnet', 'Windows' => 'com_dotnet',
}; };