Re: Fix build of *86*-linux-android with --enable-shared

2014-08-06 Thread Alexander Ivchenko
Thanks for looking at this. Bootstrapped and reg-tested on x86_64-unknown-linux-gnu. 2014-08-06 0:18 GMT+04:00 Jeff Law l...@redhat.com: On 08/04/14 00:08, Alexander Ivchenko wrote: Hi, libcilkrts is compiled with -nostdlib, that means we have to explicitly specify the pthread library we

Re: Fix build of *86*-linux-android with --enable-shared

2014-08-05 Thread Jeff Law
On 08/04/14 00:08, Alexander Ivchenko wrote: Hi, libcilkrts is compiled with -nostdlib, that means we have to explicitly specify the pthread library we should link with (e.g. we don't have such problem with libgomp, because it is C). And, indeed, -lpthread is hard-coded in the Makefile for

Fix build of *86*-linux-android with --enable-shared

2014-08-04 Thread Alexander Ivchenko
Hi, libcilkrts is compiled with -nostdlib, that means we have to explicitly specify the pthread library we should link with (e.g. we don't have such problem with libgomp, because it is C). And, indeed, -lpthread is hard-coded in the Makefile for cilkrts. For Android this doesn't work, because