fix shell quoting error for static libraries (#8532)

This commit is contained in:
Charlie Barto
2018-08-03 19:18:27 -04:00
committed by Andreas Rumpf
parent 9a390d66fb
commit e403ef25ac

View File

@@ -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")