Ensure flags destined for ld are properly passed
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 1 Dec 2016 16:28:47 +0000 (11:28 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 1 Dec 2016 16:28:47 +0000 (11:28 -0500)
commitf48f5a9ebf384e1e157b7b413e1d779f4289ddd2
treec4cd53c984bf11238ccad6a8024ce58fc9a44e93
parent0200dedc32122a939fc9e7ed83b01e527d7b3808
Ensure flags destined for ld are properly passed

GHC uses gcc, not ld, for linking. Consequently all flags to be
interpreted by ld need to be prefixed by -optl,-Wl on the GHC command
line.

Test Plan: Validate on OpenBSD

Reviewers: austin, rwbarton

Reviewed By: rwbarton

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2776
rules/distdir-way-opts.mk