From e7c6dcd107fcb43093faa18d7dcfee8cf5538bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 1 Aug 2017 17:52:58 +0200 Subject: [PATCH] Link against pthread on Linux Since we're using pthread_join and pthread_create, to make the gold linker happy on linux we need to explicitly link against pthread library. --- cryptonite.cabal | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cryptonite.cabal b/cryptonite.cabal index 7f91e61..4e3b4cc 100644 --- a/cryptonite.cabal +++ b/cryptonite.cabal @@ -226,6 +226,8 @@ Library , foundation >= 0.0.8 , ghc-prim ghc-options: -Wall -fwarn-tabs -optc-O3 -fno-warn-unused-imports + if os(linux) + extra-libraries: pthread default-language: Haskell2010 cc-options: -std=gnu99 if flag(old_toolchain_inliner)