mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
-lphp shared not static
This commit is contained in:
parent
8c5dc91895
commit
8ff52e2e36
@ -536,13 +536,13 @@ class Extension
|
||||
$libs = explode(' ', $allLibs);
|
||||
foreach ($libs as $lib) {
|
||||
$staticLib = BUILD_LIB_PATH . '/lib' . str_replace('-l', '', $lib) . '.a';
|
||||
if (file_exists($staticLib)) {
|
||||
$staticLibString .= " {$lib}";
|
||||
} else {
|
||||
if (!file_exists($staticLib) || $lib === '-lphp') {
|
||||
$sharedLibString .= " {$lib}";
|
||||
} else {
|
||||
$staticLibString .= " {$lib}";
|
||||
}
|
||||
}
|
||||
return [$staticLibString, $sharedLibString];
|
||||
return [trim($staticLibString), trim($sharedLibString)];
|
||||
}
|
||||
|
||||
private function getLibraryDependencies(bool $recursive = false): array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user