summaryrefslogtreecommitdiff
path: root/compiler/main/DriverPipeline.hs
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2014-08-10 15:53:12 -0500
committerAustin Seipp <austin@well-typed.com>2014-08-10 15:53:13 -0500
commit8d90ffae3a3c0d7c9ac8800ae91887aeaa9917d3 (patch)
tree11ed083a8cc0b21e024752d55dfe4fc41beed868 /compiler/main/DriverPipeline.hs
parentb02fa3b94133f35ca83b6abf0cc73733ea8b8786 (diff)
downloadhaskell-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.hs2
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 = []