Skip to content

Commit

Permalink
Remove a bitrotted hack for OpenBSD and NetBSD regarding the dyn way.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
depressed-pho authored and Ian Lynagh committed Mar 17, 2013
1 parent c84001d commit ae3dcaf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions compiler/main/DynFlags.hs
Expand Up @@ -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}",
Expand Down

0 comments on commit ae3dcaf

Please sign in to comment.