Recognize dynamic library names like libraylib.so.5.0.0

This commit is contained in:
joakin
2024-04-03 14:03:56 +02:00
parent 1b143b9fa3
commit 60ef4fda4d
3 changed files with 21 additions and 2 deletions

View File

@@ -5710,7 +5710,7 @@ gb_internal bool determine_path_from_string(BlockingMutex *file_mutex, Ast *node
// working directory of the exe to the library search paths.
// Static libraries can be linked directly with the full pathname
//
if (node->kind == Ast_ForeignImportDecl && string_ends_with(file_str, str_lit(".so"))) {
if (node->kind == Ast_ForeignImportDecl && (string_ends_with(file_str, str_lit(".so")) || string_contains_string(file_str, str_lit(".so.")))) {
*path = file_str;
return true;
}