summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharlie Barto <bartoc@umich.edu>2018-08-03 19:18:27 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-08-04 01:18:27 +0200
commite403ef25aceed929a3118e0dc2104c29e824dfcd (patch)
tree1e56e717bf0c030a930c890d59023cc23b628f2a
parent9a390d66fb86eb68851000738be5744bea1261a0 (diff)
downloadNim-e403ef25aceed929a3118e0dc2104c29e824dfcd.tar.gz
fix shell quoting error for static libraries (#8532)
-rw-r--r--compiler/extccomp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index a90442369..16b0d614d 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -659,7 +659,7 @@ proc getLinkCmd(conf: ConfigRef; projectfile, objfiles: string): string =
         libname = getCurrentDir() / libname
     else:
       libname = (libNameTmpl(conf) % splitFile(conf.projectName).name)
-    result = CC[conf.cCompiler].buildLib % ["libfile", libname,
+    result = CC[conf.cCompiler].buildLib % ["libfile", quoteShell(libname),
                                        "objfiles", objfiles]
   else:
     var linkerExe = getConfigVar(conf, conf.cCompiler, ".linkerexe")