Skip to content

Commit

Permalink
Make flag pkg-config automatic and on by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodigrim committed Jan 30, 2024
1 parent bf79831 commit 4000b23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zlib.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ flag non-blocking-ffi
avoids this unfairness, but with greater overall cost.

flag pkg-config
default: False
manual: True
default: True
manual: False
description: Use @pkg-config(1)@ to locate foreign @zlib@ library.

flag bundled-c-zlib
Expand Down Expand Up @@ -103,7 +103,7 @@ library
ghc-options: -Wall -fwarn-tabs
if flag(non-blocking-ffi)
cpp-options: -DNON_BLOCKING_FFI
if flag(pkg-config) && !impl(ghcjs) && !os(ghcjs)
if flag(pkg-config) && !flag(bundled-c-zlib)
-- NB: pkg-config is available on windows as well when using msys2
pkgconfig-depends: zlib
else
Expand Down

0 comments on commit 4000b23

Please sign in to comment.