libraries must link against -lphp dynamic!

This commit is contained in:
DubbleClick
2025-06-19 11:20:57 +07:00
parent 4a70f260f3
commit 61a9264802
3 changed files with 4 additions and 3 deletions

View File

@@ -503,7 +503,7 @@ class Extension
continue;
}
$static_lib = 'lib' . $lib . '.a';
if (file_exists(BUILD_LIB_PATH . '/' . $static_lib)) {
if (file_exists(BUILD_LIB_PATH . '/' . $static_lib) && !str_contains($static_lib, 'libphp')) {
if (!str_contains($staticLibString, '-l' . $lib . ' ')) {
$staticLibString .= '-l' . $lib . ' ';
}