aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-09 14:39:31 +0200
committerGitHub <noreply@github.com>2025-04-09 14:39:31 +0200
commit5912718002bf24fb144477df5c36fa55965adecf (patch)
treefeea3a087eda0009429a9866094024be4e1ffd2c /src
parent2548fc24310bd6cbcaa74c32c80d3bef69c838fb (diff)
parentdc75ee72ae4ff83571dadccc180d935ca791a7af (diff)
Merge pull request #5023 from justgook/master
add quotes for absolute path
Diffstat (limited to 'src')
-rw-r--r--src/linker.cpp2
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));