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:
parent
1992594f82
commit
e7c6dcd107
@ -226,6 +226,8 @@ Library
|
|||||||
, foundation >= 0.0.8
|
, foundation >= 0.0.8
|
||||||
, ghc-prim
|
, ghc-prim
|
||||||
ghc-options: -Wall -fwarn-tabs -optc-O3 -fno-warn-unused-imports
|
ghc-options: -Wall -fwarn-tabs -optc-O3 -fno-warn-unused-imports
|
||||||
|
if os(linux)
|
||||||
|
extra-libraries: pthread
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
cc-options: -std=gnu99
|
cc-options: -std=gnu99
|
||||||
if flag(old_toolchain_inliner)
|
if flag(old_toolchain_inliner)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user