diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2017-03-29 17:29:58 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-03-29 18:06:21 -0400 |
commit | 924a65fc27bb2a3e24489f7baea7ad5fb8a556ac (patch) | |
tree | 32f37fb1bb460fc7917decb3da0abdb7616f72a4 /compiler/main/DriverPipeline.hs | |
parent | 81f5b6ecbadec49af53189756dda5e0b199f9703 (diff) | |
download | haskell-924a65fc27bb2a3e24489f7baea7ad5fb8a556ac.tar.gz |
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
Diffstat (limited to 'compiler/main/DriverPipeline.hs')
-rw-r--r-- | compiler/main/DriverPipeline.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index c4918cc0da..0979f92d47 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1895,7 +1895,7 @@ linkBinary' staticLink dflags o_files dep_packages = do let thread_opts | WayThreaded `elem` ways dflags = let os = platformOS (targetPlatform dflags) - in if os `elem` [OSMinGW32, OSFreeBSD, OSOpenBSD, + in if os `elem` [OSMinGW32, OSFreeBSD, OSOpenBSD, OSAndroid, OSNetBSD, OSHaiku, OSQNXNTO, OSiOS, OSDarwin] then [] else ["-lpthread"] |