rts: Fix build when linked with gold
authorBen Gamari <bgamari.foss@gmail.com>
Sat, 12 Nov 2016 03:04:32 +0000 (22:04 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sat, 12 Nov 2016 03:04:33 +0000 (22:04 -0500)
commit2cfbee896be349d16238c044475c7c15cfb9b3f2
tree2d6e9dd8b676d493d47c89d318a60735ed21cbf1
parent7eae862a5af185e918aa29d63a7a9484292513e4
rts: Fix build when linked with gold

As reported in #12812, the runtime system fails to build when linked
with gold due to a missing dependency on libpthread.

Additionally, rts/package.conf.in uses the WORD_SIZE_IN_BITS macro
defined by MachDeps.h, which it does not #include. Fix this.

Test Plan: Validate with gold linker

Reviewers: hsyl20, austin, erikd, simonmar

Subscribers: thomie

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

GHC Trac Issues: #12816
rts/package.conf.in