Build ghc-iserv with --export-dynamic
authorSimon Marlow <marlowsd@gmail.com>
Fri, 14 Oct 2016 14:43:10 +0000 (10:43 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 14 Oct 2016 17:27:33 +0000 (13:27 -0400)
commit3ce0e0baad05352e2e1ca439794b6f9f2325ef2b
tree23dcbe749216376b32c72afc919b1db47867bf8e
parentd5a4e49d657682eeb6e86ae464d281974ce2f5e2
Build ghc-iserv with --export-dynamic

This enables loading dynamic libraries that refer to the RTS.  I just
came across somewhere I needed to do that, and without
`--export-dynamic` it's impossible.

For now we'll only support that when using `-fexternal-interpreter`,
because the dynamic symbol table for GHC itself is much bigger.

Test Plan: validate

Reviewers: niteria, austin, erikd, bgamari

Reviewed By: bgamari

Subscribers: Phyx, thomie

Differential Revision: https://phabricator.haskell.org/D2590
iserv/ghc.mk