Skip to content

Commit c6803c7

Browse files
hasufelldcoutts
authored andcommitted
Add static flag
1 parent 61119e9 commit c6803c7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

zlib.cabal

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ flag pkg-config
5151
manual: True
5252
description: Use @pkg-config(1)@ to locate foreign @zlib@ library.
5353

54+
flag bundled-c-zlib
55+
default: False
56+
manual: True
57+
description: Use the bundled zlib C sources. Requires pkg-config to be False.
58+
For windows, this is the default.
59+
60+
5461
library
5562
exposed-modules: Codec.Compression.GZip,
5663
Codec.Compression.Zlib,
@@ -81,7 +88,7 @@ library
8188
pkgconfig-depends: zlib
8289
else
8390
-- don't use pkg-config
84-
if !os(windows) && !impl(ghcjs) && !os(ghcjs)
91+
if !os(windows) && !flag(bundled-c-zlib) && !impl(ghcjs) && !os(ghcjs)
8592
-- Normally we use the the standard system zlib.
8693
extra-libraries: z
8794
else

0 commit comments

Comments
 (0)