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