diff options
author | Bob Ippolito <bob@redivi.com> | 2014-08-10 15:53:12 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-08-10 15:53:13 -0500 |
commit | 8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3 (patch) | |
tree | 11ed083a8cc0b21e024752d55dfe4fc41beed868 /compiler/main/DriverPipeline.hs | |
parent | b02fa3b94133f35ca83b6abf0cc73733ea8b8786 (diff) | |
download | haskell-8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3.tar.gz |
fix darwin threaded static linking by removing -lpthread option #9189
Summary: Signed-off-by: Bob Ippolito <bob@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
Diffstat (limited to 'compiler/main/DriverPipeline.hs')
-rw-r--r-- | compiler/main/DriverPipeline.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index f7b5eb8782..183f435296 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 = [] |