fix build failure on Solaris caused by usage of --export-dynamic

Authored by kgardas on Oct 18 2016, 2:47 PM.

Description

fix build failure on Solaris caused by usage of --export-dynamic

Summary:
This patch fixes build failure on Solaris which is caused
by usage --export-dynamic linker parameter. This parameter is not
supported by Solaris linker. The param itself was added by D2590

Reviewers: bgamari, simonmar, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2606