Fixed static linking on linux.
h3rald h3rald@h3rald.com
Sat, 08 Jul 2017 20:33:39 +0000
2 files changed,
14 insertions(+),
15 deletions(-)
M
markdown.nim
→
markdown.nim
@@ -1,3 +1,17 @@
+when defined(discount): + {.link: "packages/discount/libmarkdown.a".} +else: + when defined(macosx): + {.link: "vendor/libmarkdown_macosx_x64.a".} + when defined(windows): + {.link: "vendor/libmarkdown_windows_x64.a".} + when defined(linux): + when defined(arm): + {.passL: "vendor/libmarkdown_linux_arm.a".} + when defined(i386): + {.passL: "vendor/libmarkdown_linux_x86.a".} + when defined(amd64): + {.passL: "vendor/libmarkdown_linux_x64.a".} const MKDIO_D* = true type@@ -184,18 +198,3 @@ result = cstringArrayToSeq(res)[0]
else: result = "" mkd_cleanup(mmiot) - -when defined(discount): - {.link: "packages/discount/libmarkdown.a".} -else: - when defined(macosx): - {.link: "vendor/libmarkdown_macosx_x64.a".} - when defined(windows): - {.link: "vendor/libmarkdown_windows_x64.a".} - when defined(linux): - when defined(arm): - {.link: "vendor/libmarkdown_linux_arm.a".} - when defined(i386): - {.link: "vendor/libmarkdown_linux_x86.a".} - when defined(amd64): - {.link: "vendor/libmarkdown_linux_x64.a".}