configure: detect whether -lpthreads is necessary for pthreads
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 27 Feb 2017 00:28:08 +0000 (19:28 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 28 Feb 2017 14:26:14 +0000 (09:26 -0500)
commite94bfb677298de3c4b4e0d1223fbc589849b79be
tree8d08b958316bc74f64f3dd9bc57e4427c7238901
parent36b6e131d252814bca8bf7e684e50466dc12483b
configure: detect whether -lpthreads is necessary for pthreads

Some platforms have pthreads support available without linking against
libpthread (and indeed don't even offer a libpthread to link against).
One example of this is Android's bionic library. Teach the RTS about
this case.

Test Plan: Validate while cross-compiling targetting Android on aarch64

Reviewers: simonmar, austin, hvr, erikd, rwbarton

Subscribers: danharaj, thomie, erikd, snowleopard

Differential Revision: https://phabricator.haskell.org/D3149
configure.ac
rts/package.conf.in