Use --export-dynamic to ensure ghci works on newer openbsds
authorDon Stewart <dons@cse.unsw.edu.au>
Thu, 21 Sep 2006 01:01:55 +0000 (01:01 +0000)
committerDon Stewart <dons@cse.unsw.edu.au>
Thu, 21 Sep 2006 01:01:55 +0000 (01:01 +0000)
commit069495a32aacd7a1f0d543eea81a49c2776c6ede
tree93647150c65328d2e95ae9caef38dbb2cf05b18d
parent712a6f8a506402b887efda3a2db70a1e5907ff13
Use --export-dynamic to ensure ghci works on newer openbsds

Changes to the RTLD_DEFAULT semantics broke the trick we used to ensure
libc symbols were available to the ghci linker, in OpenBSD 4.0. We can
fix this by linking the ghc binary itself with --export-dynamic on this
system, removing the need for any magic Linker.c games.

GHCi now works on OpenBSD 4.0

Contributed by Eric Mertens <emertens at gmail.com>
compiler/Makefile.ghcbin
rts/Linker.c