fix musl toolchain (needs LD_LIBRARY_PATH)

This commit is contained in:
henderkes 2025-10-06 22:31:23 +02:00
parent 17a25b44e2
commit d789b1a472

View File

@ -95,9 +95,16 @@ trait postgresql
'$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS -DFRONTEND',
);
$env = [
'CFLAGS' => $cflags,
];
if ($ldLibraryPath = getenv('SPC_LD_LIBRARY_PATH')) {
$env['LD_LIBRARY_PATH'] = $ldLibraryPath;
}
// configure
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
->appendEnv(['CFLAGS' => $cflags])
->appendEnv($env)
->exec(
"{$envs} ../configure " .
"--prefix={$builddir} " .