Skip to content

Commit 5d5a50a

Browse files
Update src/SPC/builder/LibraryBase.php
Co-authored-by: Jerry Ma <[email protected]>
1 parent 1edf14e commit 5d5a50a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SPC/builder/LibraryBase.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,10 @@ protected function isLibraryInstalled(): bool
381381
return false;
382382
}
383383
}
384-
return true; // allow using system dependencies if pkg_config_path is explicitly defined
384+
// allow using system dependencies if pkg_config_path is explicitly defined
385+
if (count($search_paths) > 1) {
386+
return true;
387+
}
385388
}
386389
foreach (Config::getLib(static::NAME, 'static-libs', []) as $name) {
387390
if (!file_exists(BUILD_LIB_PATH . "/{$name}")) {

0 commit comments

Comments
 (0)