mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix musl toolchain (needs LD_LIBRARY_PATH)
This commit is contained in:
parent
17a25b44e2
commit
d789b1a472
@ -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} " .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user