diff options
| author | Romāns Potašovs <justgook@gmail.com> | 2025-04-09 15:31:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-09 15:31:34 +0300 |
| commit | dc75ee72ae4ff83571dadccc180d935ca791a7af (patch) | |
| tree | 589f54dd87ea796b33df8a2690e09bb585787708 /src/linker.cpp | |
| parent | 377e4e11edbcddc22bb2ea697aa9de649f7542e2 (diff) | |
add quotes for absolute path
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 c87727974..ec165ef7d 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -603,7 +603,7 @@ try_cross_linking:; // object // dynamic lib // static libs, absolute full path relative to the file in which the lib was imported from - lib_str = gb_string_append_fmt(lib_str, " %.*s ", LIT(lib)); + lib_str = gb_string_append_fmt(lib_str, " \"%.*s\" ", LIT(lib)); } else { // dynamic or static system lib, just link regularly searching system library paths lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib)); |