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/linker.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/linker.cpp')
| -rw-r--r-- | src/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linker.cpp b/src/linker.cpp index e694fd999..33ca70462 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -432,7 +432,7 @@ gb_internal i32 linker_stage(LinkerData *gen) { if (string_ends_with(lib, str_lit(".a")) || string_ends_with(lib, str_lit(".o"))) { // static libs and object files, absolute full path relative to the file in which the lib was imported from lib_str = gb_string_append_fmt(lib_str, " -l:\"%.*s\" ", LIT(lib)); - } else if (string_ends_with(lib, str_lit(".so"))) { + } else if (string_ends_with(lib, str_lit(".so")) || string_contains_string(lib, str_lit(".so."))) { // dynamic lib, relative path to executable // NOTE(vassvik): it is the user's responsibility to make sure the shared library files are visible // at runtime to the executable |