Commit ae3dcaf5 authored by PHO's avatar PHO Committed by ian@well-typed.com

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.
parent c84001d5
......@@ -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}",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment