pq forgets to link against -llber, only links against -lldap

This commit is contained in:
DubbleClick
2025-06-07 21:57:04 +07:00
parent f4771b4f21
commit bb1f086674
2 changed files with 4 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ declare(strict_types=1);
namespace SPC\builder\unix\library;
use Hoa\File\File;
use SPC\builder\linux\library\LinuxLibraryBase;
use SPC\exception\FileSystemException;
use SPC\exception\RuntimeException;
@@ -119,6 +120,8 @@ trait postgresql
->exec("rm -rf {$builddir}/lib/*.so.*")
->exec("rm -rf {$builddir}/lib/*.so")
->exec("rm -rf {$builddir}/lib/*.dylib");
FileSystem::replaceFileStr(BUILD_LIB_PATH . '/libpq.pc', '-lldap', '-lldap -llber');
}
private function getVersion(): string