Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions zip/libzip.nim
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

## Interface to the `libzip <http://www.nih.at/libzip/index.html>`_ library by
## 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.
## statically unless ``zipUseShared`` is defined, in which case it links to
## ``libzip2.so.2``.

#
# zip.h -- exported declarations.
Expand Down Expand Up @@ -47,15 +47,15 @@

import times

when defined(unix) and not defined(useLibzipSrc):
when defined(zipUseShared):
when defined(macosx):
{.pragma: mydll, dynlib: "libzip(|2|4).dylib".}
else:
{.pragma: mydll, dynlib: "libzip(|2).so(|.4|.2|.1|.0)".}
else:
when defined(unix):
{.passl: "-lz".}
{.compile: "zip/private/libzip_all.c".}
{.passl: "-static".}
{.passl: "-lzip".}
{.passl: "-lz".}
{.pragma: mydll.}

type
Expand Down
Loading