Skip to content

Commit

Permalink
hopenssl.cabal: add link-libz flag enable an explicit dependency on libz
Browse files Browse the repository at this point in the history
Static variants of libcrypto may depend on libz but can't express that
dependency, so we have to worry about telling Cabal about it.

Relevant Issue:
 - NixOS/cabal2nix#389
 - haskell/cabal#5805
  • Loading branch information
peti committed Dec 22, 2018
1 parent a2ccadc commit 94aa591
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hopenssl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ source-repository head
type: git
location: git://github.com/peti/hopenssl.git

flag link-libz
default: False
manual: True
description: OpenSSL\'s @libcrypto@ has a dependency on @libz@

library
exposed-modules: OpenSSL.Digest
OpenSSL.EVP.Digest
Expand All @@ -41,6 +46,9 @@ library
includes: openssl/evp.h
build-tools: hsc2hs

if flag(link-libz)
extra-libraries: z

test-suite check-low-level-digest-api
type: exitcode-stdio-1.0
main-is: CheckLowLevelDigestAPI.hs
Expand Down

0 comments on commit 94aa591

Please sign in to comment.