From e403ef25aceed929a3118e0dc2104c29e824dfcd Mon Sep 17 00:00:00 2001 From: Charlie Barto Date: Fri, 3 Aug 2018 19:18:27 -0400 Subject: [PATCH] fix shell quoting error for static libraries (#8532) --- compiler/extccomp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index a90442369e..16b0d614da 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")