File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ flag non-blocking-ffi
45
45
prevents other Haskell threads running. Enabling this flag
46
46
avoids this unfairness, but with greater overall cost.
47
47
48
+ flag use-pkg-config
49
+ default : False
50
+ manual : True
51
+ description : Use pkg-config to find foreign zlib.
52
+
48
53
library
49
54
exposed-modules : Codec.Compression.GZip,
50
55
Codec.Compression.Zlib,
@@ -70,7 +75,10 @@ library
70
75
cpp-options : -DNON_BLOCKING_FFI
71
76
if !os(windows)
72
77
-- Normally we use the the standard system zlib:
73
- extra-libraries : z
78
+ if !flag(use-pkg-config)
79
+ extra-libraries : z
80
+ else
81
+ pkgconfig-depends : zlib
74
82
else
75
83
-- However for the benefit of users of Windows (which does not have zlib
76
84
-- by default) we bundle a complete copy of the C sources of zlib-1.2.8
You can’t perform that action at this time.
0 commit comments