[build, lto-plugin] Check for -static-libgcc before use (PR lto/60981)

Richard Biener richard.guenther@gmail.com
Wed May 14 09:21:00 GMT 2014


On Wed, May 14, 2014 at 10:31 AM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> As reported in the PR, the lto-plugin may fail to link if the host
> compiler defines __GNUC__, but doesn't accept -static-libgcc (like
> recent versions of clang do).
>
> The following patch fixes this by explicitly checking for -static-libgcc
> instead of relying on __GNUC__/$GNUC.
>
> Tested by configuring lto-plugin with Studio cc (which doesn't define
> __GNUC__) and gcc.  The submitter also verified that the patch fixes his
> problem.
>
> Ok for mainline and the 4.9 branch?

Ok if nobody else objects within 24h.

Thanks,
Richard.

>         Rainer
>
>
> 2014-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
>         PR lto/60981
>         * configure.ac: Check for -static-libgcc.
>         * configure: Regenerate.
>
>
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>



More information about the Gcc-patches mailing list