Skip to content

Commit 61119e9

Browse files
authored
Merge pull request #25 from angerman/angerman/ghcjs
ghcjs support
2 parents fdf167e + 3662b36 commit 61119e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zlib.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ maintainer: Duncan Coutts <[email protected]>
1010
bug-reports: https://github.com/haskell/zlib/issues
1111
category: Codec
1212
synopsis: Compression and decompression in the gzip and zlib formats
13-
description: This package provides a pure interface for compressing and
14-
decompressing streams of data represented as lazy
13+
description: This package provides a pure interface for compressing and
14+
decompressing streams of data represented as lazy
1515
'ByteString's. It uses the
1616
<https://en.wikipedia.org/wiki/Zlib zlib C library>
1717
so it has high performance. It supports the \"zlib\",
@@ -76,12 +76,12 @@ library
7676
ghc-options: -Wall -fwarn-tabs
7777
if flag(non-blocking-ffi)
7878
cpp-options: -DNON_BLOCKING_FFI
79-
if flag(pkg-config)
79+
if flag(pkg-config) && !impl(ghcjs) && !os(ghcjs)
8080
-- NB: pkg-config is available on windows as well when using msys2
8181
pkgconfig-depends: zlib
8282
else
8383
-- don't use pkg-config
84-
if !os(windows)
84+
if !os(windows) && !impl(ghcjs) && !os(ghcjs)
8585
-- Normally we use the the standard system zlib.
8686
extra-libraries: z
8787
else

0 commit comments

Comments
 (0)