浏览代码

add quotes for absolute path

Romāns Potašovs 5 月之前
父节点
当前提交
dc75ee72ae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/linker.cpp

+ 1 - 1
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));