diff options
author | Araq <rumpf_a@web.de> | 2013-06-27 21:41:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-06-27 21:41:53 +0200 |
commit | 86d64b2f5efb03e34cf97c64524f1e49657a63ec (patch) | |
tree | a8546436a5c3e01ccb8d5c021e931696cc6d3d92 /lib/wrappers | |
parent | b6f2902905443434ca6d83556168555ab9ddee72 (diff) | |
download | Nim-86d64b2f5efb03e34cf97c64524f1e49657a63ec.tar.gz |
attempt to make libzip work on the testing machines
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/zip/libzip.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/wrappers/zip/libzip.nim b/lib/wrappers/zip/libzip.nim index fe4316dc7..26a0ce67c 100644 --- a/lib/wrappers/zip/libzip.nim +++ b/lib/wrappers/zip/libzip.nim @@ -8,7 +8,9 @@ # ## Interface to the `libzip <http://www.nih.at/libzip/index.html>`_ library by -## Dieter Baron and Thomas Klausner. +## Dieter Baron and Thomas Klausner. This version links +## against ``libzip2.so.2`` unless you define the symbol ``useLibzipSrc``; then +## it is compiled against some old ``libizp_all.c`` file. # # zip.h -- exported declarations. @@ -45,12 +47,12 @@ import times -when defined(unix): +when defined(unix) and not defined(useLibzipSrc): {.passl: "-lz".} when defined(macosx): {.pragma: mydll, dynlib: "libzip2.dylib".} else: - {.pragma: mydll, dynlib: "libzip2.so(|.0|.1)".} + {.pragma: mydll, dynlib: "libzip2.so(|.2|.1|.0)".} else: {.compile: "libzip_all.c".} {.pragma: mydll.} |