Update src/SPC/builder/LibraryBase.php

Co-authored-by: Jerry Ma <jesse2061@outlook.com>
This commit is contained in:
Marc 2026-03-10 10:57:49 +07:00 committed by GitHub
parent 1edf14e642
commit 5d5a50a33c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -381,7 +381,10 @@ abstract class LibraryBase
return false;
}
}
return true; // allow using system dependencies if pkg_config_path is explicitly defined
// allow using system dependencies if pkg_config_path is explicitly defined
if (count($search_paths) > 1) {
return true;
}
}
foreach (Config::getLib(static::NAME, 'static-libs', []) as $name) {
if (!file_exists(BUILD_LIB_PATH . "/{$name}")) {