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.
This commit is contained in:
Domen Kožar 2017-08-01 17:52:58 +02:00
parent 1992594f82
commit e7c6dcd107
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -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)