On Wed, May 14, 2014 at 10:31 AM, Rainer Orth <r...@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 <r...@cebitec.uni-bielefeld.de> > > PR lto/60981 > * configure.ac: Check for -static-libgcc. > * configure: Regenerate. > > > > -- > ----------------------------------------------------------------------------- > Rainer Orth, Center for Biotechnology, Bielefeld University >