summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPHO <pho@cielonegro.org>2013-03-14 16:13:45 +0900
committerIan Lynagh <ian@well-typed.com>2013-03-17 01:30:15 +0000
commitae3dcaf5884028e4e29a45f724d2d3f5c92a1caf (patch)
tree061f9ae9355d37ff9d5e7f629b56d3e24c62ce8f
parentc84001d5c434ec8d4cf012ec5c0b0f74e372e715 (diff)
downloadhaskell-ae3dcaf5884028e4e29a45f724d2d3f5c92a1caf.tar.gz
Remove a bitrotted hack for OpenBSD and NetBSD regarding the dyn way.
On OpenBSD and NetBSD, we were accidentally passing "-optl-pthread" to the gcc to build dynamic libraries because of a bitrotted hack for those OSes, which resulted in a weird situation where every dynamic library is named "ptl-pthread" and placed at "$(TOP)". The hack in question were to work around a linkage problem with libHSffi, but we no longer build it and just use libffi these days so the hack can safely be removed.
-rw-r--r--compiler/main/DynFlags.hs12
1 files changed, 2 insertions, 10 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index c021355bc1..3705846a21 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -1121,16 +1121,8 @@ wayOptl platform WayThreaded =
OSOpenBSD -> ["-pthread"]
OSNetBSD -> ["-pthread"]
_ -> []
-wayOptl _ WayDebug = []
-wayOptl platform WayDyn =
- case platformOS platform of
- OSOpenBSD -> -- Without this, linking the shared libHSffi fails
- -- because it uses pthread mutexes.
- ["-optl-pthread"]
- OSNetBSD -> -- Without this, linking the shared libHSffi fails
- -- because it uses pthread mutexes.
- ["-optl-pthread"]
- _ -> []
+wayOptl _ WayDebug = []
+wayOptl _ WayDyn = []
wayOptl _ WayProf = []
wayOptl _ WayEventLog = []
wayOptl _ WayPar = ["-L${PVM_ROOT}/lib/${PVM_ARCH}",