mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +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',
|
'$(OBJS_FRONTEND): CPPFLAGS += -UUSE_PRIVATE_ENCODING_FUNCS -DFRONTEND',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$env = [
|
||||||
|
'CFLAGS' => $cflags,
|
||||||
|
];
|
||||||
|
if ($ldLibraryPath = getenv('SPC_LD_LIBRARY_PATH')) {
|
||||||
|
$env['LD_LIBRARY_PATH'] = $ldLibraryPath;
|
||||||
|
}
|
||||||
|
|
||||||
// configure
|
// configure
|
||||||
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
|
shell()->cd($this->source_dir . '/build')->initializeEnv($this)
|
||||||
->appendEnv(['CFLAGS' => $cflags])
|
->appendEnv($env)
|
||||||
->exec(
|
->exec(
|
||||||
"{$envs} ../configure " .
|
"{$envs} ../configure " .
|
||||||
"--prefix={$builddir} " .
|
"--prefix={$builddir} " .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user