fix shell quoting error for static libraries (#8532)
This commit is contained in:
parent
9a390d66fb
commit
e403ef25ac
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ proc getLinkCmd(conf: ConfigRef; projectfile, objfiles: string): string =
|
||||||
libname = getCurrentDir() / libname
|
libname = getCurrentDir() / libname
|
||||||
else:
|
else:
|
||||||
libname = (libNameTmpl(conf) % splitFile(conf.projectName).name)
|
libname = (libNameTmpl(conf) % splitFile(conf.projectName).name)
|
||||||
result = CC[conf.cCompiler].buildLib % ["libfile", libname,
|
result = CC[conf.cCompiler].buildLib % ["libfile", quoteShell(libname),
|
||||||
"objfiles", objfiles]
|
"objfiles", objfiles]
|
||||||
else:
|
else:
|
||||||
var linkerExe = getConfigVar(conf, conf.cCompiler, ".linkerexe")
|
var linkerExe = getConfigVar(conf, conf.cCompiler, ".linkerexe")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue