fix darwin threaded static linking by removing -lpthread option #9189
authorBob Ippolito <bob@redivi.com>
Sun, 10 Aug 2014 20:53:12 +0000 (15:53 -0500)
committerAustin Seipp <austin@well-typed.com>
Sun, 10 Aug 2014 20:53:13 +0000 (15:53 -0500)
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

compiler/main/DriverPipeline.hs

index f7b5eb8..183f435 100644 (file)
@@ -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               = []