From dc75ee72ae4ff83571dadccc180d935ca791a7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C4=81ns=20Pota=C5=A1ovs?= Date: Wed, 9 Apr 2025 15:31:34 +0300 Subject: [PATCH] add quotes for absolute path --- src/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));