Various patches to support android cross compilation
authorMoritz Angermann <moritz.angermann@gmail.com>
Wed, 29 Mar 2017 21:29:58 +0000 (17:29 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 29 Mar 2017 22:06:21 +0000 (18:06 -0400)
commit924a65fc27bb2a3e24489f7baea7ad5fb8a556ac
tree32f37fb1bb460fc7917decb3da0abdb7616f72a4
parent81f5b6ecbadec49af53189756dda5e0b199f9703
Various patches to support android cross compilation

- Better test for SHT_INIT_ARRAY than openbsd_HOST_OS
  This is actually bens patch:
  https://gist.github.com/bgamari/c846e6a5f2cd988716cd5e36c68d5bef
- linux-android defines.
- No need for -lpthread on OSAndroid
  However, I’m confused why we do not use the AC NEED_PTHREAD_LIB
  value here?
- Use mmap on android
- Support `none` vendor.

Reviewers: austin, hvr, bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, thomie, erikd

Differential Revision: https://phabricator.haskell.org/D3356
aclocal.m4
compiler/main/DriverPipeline.hs
configure.ac
rts/linker/Elf.c