Merge pull request #2666 from def-/fix-staticlib
Fix the lib path used with --app:staticlib
This commit is contained in:
commit
22c9b89392
1 changed files with 2 additions and 1 deletions
|
|
@ -668,7 +668,8 @@ proc callCCompiler*(projectfile: string) =
|
||||||
it = PStrEntry(it.next)
|
it = PStrEntry(it.next)
|
||||||
|
|
||||||
if optGenStaticLib in gGlobalOptions:
|
if optGenStaticLib in gGlobalOptions:
|
||||||
linkCmd = CC[c].buildLib % ["libfile", (libNameTmpl() % gProjectName),
|
let name = splitFile(gProjectName).name
|
||||||
|
linkCmd = CC[c].buildLib % ["libfile", (libNameTmpl() % name),
|
||||||
"objfiles", objfiles]
|
"objfiles", objfiles]
|
||||||
else:
|
else:
|
||||||
var linkerExe = getConfigVar(c, ".linkerexe")
|
var linkerExe = getConfigVar(c, ".linkerexe")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue