summary refs log tree commit diff stats
path: root/compiler/extccomp.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-05-07 22:13:08 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-05-07 22:13:08 +0200
commit22c9b893925b6296848d2e7c0acbe829a85925b7 (patch)
tree9209bbd1728d83a3942926c36b259e67b4ac4f98 /compiler/extccomp.nim
parent9ef09fc6f505a2dc1cc6fb8b7869ae25de6a2be0 (diff)
parenta7b39e3ebf4e46f946176f3da1b11c4f52345b6f (diff)
downloadNim-22c9b893925b6296848d2e7c0acbe829a85925b7.tar.gz
Merge pull request #2666 from def-/fix-staticlib
Fix the lib path used with --app:staticlib
Diffstat (limited to 'compiler/extccomp.nim')
-rw-r--r--compiler/extccomp.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index 26f0318ee..75cb1ef27 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -668,7 +668,8 @@ proc callCCompiler*(projectfile: string) =
       it = PStrEntry(it.next)
 
     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]
     else:
       var linkerExe = getConfigVar(c, ".linkerexe")