diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-05-07 22:13:08 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-05-07 22:13:08 +0200 |
commit | 22c9b893925b6296848d2e7c0acbe829a85925b7 (patch) | |
tree | 9209bbd1728d83a3942926c36b259e67b4ac4f98 /compiler/extccomp.nim | |
parent | 9ef09fc6f505a2dc1cc6fb8b7869ae25de6a2be0 (diff) | |
parent | a7b39e3ebf4e46f946176f3da1b11c4f52345b6f (diff) | |
download | Nim-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.nim | 3 |
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") |