This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Build, Driver] Add -lcilkrts for -fcilkplus
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>, "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 26 Mar 2014 14:53:56 -0700
- Subject: Re: [Build, Driver] Add -lcilkrts for -fcilkplus
- Authentication-results: sourceware.org; auth=none
- References: <531EB05C dot 8060603 at net-b dot de>
On Mon, Mar 10, 2014 at 11:42 PM, Tobias Burnus <burnus@net-b.de> wrote:
> When using Cilk Plus (-fcilkplus), it makes sense to automatically link the
> run-time library (-lcilkrts).
>
> This patch mimics libgomp by adding a .spec file; I am not 100% sure whether
> the .spec file is needed, but the pthread tests in libgomp imply that it
> makes sense. (libgomp also checks for -lrt for the high-performance timers,
> a check which is not required for libcilkrts.)
>
> Bootstrapped on x86-64-gnu-linux.
> OK for the trunk?
>
All cilk-plus link tests failed with
xgcc: error: libcilkrts.spec: No such file or directory
Don't you need to add -B............/libcilkrts for this?
--
H.J.