That fixes "--disable-shared" case only, which is important for NDK build.

Without "--disable-shared" build fails because there is no -lpthread
on Android and pthreads are in libc there.
Apparently, cilkrts configure does not check that.

I can fix that in 4.9, but I'm ok with fixing it in trunk later as
well, depending on your decision.

2014-04-17 15:31 GMT+04:00 Jakub Jelinek <ja...@redhat.com>:
> On Thu, Apr 17, 2014 at 02:47:50PM +0400, Alexander Ivchenko wrote:
>> Is it ok to port this patch to 4.9 branch:
>
> If it always fails to bootstrap with cilkrts on Android right now, then
> the patch can't do more harm, so ok.
>>
>> commit 15bee5d49b1c746fd3e784432d7e4988941a671e
>> Author: bviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>
>> Date:   Fri Apr 11 19:56:42 2014 +0000
>>
>>     Fix for PR other/60644.
>>     +2014-04-11  Barry Tannenbaum  <barry.m.tannenb...@intel.com>
>>     +
>>     +       PR other/60644
>>     +       * runtime/os-unix.c: Replaced all occurrances of ANDROID with
>>     +       __ANDROID__.
>>     +       * runtime/bug.h: Likewise.
>>     +       * include/cilk/metaprogramming.h: Likewise.
>>     +       * include/cilk/reducer_min_max.h: Likewise.
>
>         Jakub

Reply via email to