diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-05-03 17:14:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 17:14:32 +0100 |
| commit | 595726e6c5fdd64175138e75026820ff230a841d (patch) | |
| tree | 874a2129f58c3962cdc611fe16ce3e56bac554d0 /src/parser.cpp | |
| parent | fed03e896c2118bf9506d3781317591db1a8f1f5 (diff) | |
| parent | 60ef4fda4dd71e5474bb2598c4e0d18c58924e99 (diff) | |
Merge pull request #3369 from joakin/fix-dynamic-library-from-vendor-on-linux
Fix vendor dynamic libraries not working on Linux
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index f4d3dc48d..2bf25c768 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; } |