[commit: ghc] master: fix darwin threaded static linking by removing -lpthread option #9189 (8d90ffa)
git at git.haskell.org
git at git.haskell.org
Sun Aug 10 20:53:40 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3/ghc
>---------------------------------------------------------------
commit 8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3
Author: Bob Ippolito <bob at redivi.com>
Date: Sun Aug 10 15:53:12 2014 -0500
fix darwin threaded static linking by removing -lpthread option #9189
Summary: Signed-off-by: Bob Ippolito <bob at redivi.com>
Test Plan: See repro instructions in trac #9189
Reviewers: austin
Reviewed By: austin
Subscribers: phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D120
GHC Trac Issues: #9189
>---------------------------------------------------------------
8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3
compiler/main/DriverPipeline.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index f7b5eb8..183f435 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1872,7 +1872,7 @@ linkBinary' staticLink dflags o_files dep_packages = do
let os = platformOS (targetPlatform dflags)
in if os == OSOsf3 then ["-lpthread", "-lexc"]
else if os `elem` [OSMinGW32, OSFreeBSD, OSOpenBSD,
- OSNetBSD, OSHaiku, OSQNXNTO, OSiOS]
+ OSNetBSD, OSHaiku, OSQNXNTO, OSiOS, OSDarwin]
then []
else ["-lpthread"]
| otherwise = []
More information about the ghc-commits
mailing list