[PATCH] lto-plugin: use -pthread only for detected targets

2022-07-13 Thread Martin Liška
Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin Use -pthread only if we are going to use pthread functionality. PR bootstrap/106156 lto-plugin/ChangeLog: * configure: Regenerate. * configure.ac: Use -pthread o

Re: [PATCH] lto-plugin: use -pthread only for detected targets

2022-07-13 Thread Richard Biener via Gcc-patches
On Wed, Jul 13, 2022 at 10:24 AM Martin Liška wrote: > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? Didn't we have it that way and not work? IIRC LDFLAGS is only used during configure link tests and _not_ substituted? > Thanks, > Martin > >

Re: [PATCH] lto-plugin: use -pthread only for detected targets

2022-07-14 Thread Martin Liška
can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, MartinFrom bf0e9635086b5b3f88a40bab9839b2c438eed831 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 14 Jul 2022 09:51:33 +0200 Subject: [PATCH] lto-plugin: use -pthread only for detected targets U

Re: [PATCH] lto-plugin: use -pthread only for detected targets

2022-07-14 Thread Richard Biener via Gcc-patches
On Thu, Jul 14, 2022 at 12:03 PM Martin Liška wrote: > > On 7/13/22 14:15, Richard Biener wrote: > > Didn't we have it that way and not work? IIRC LDFLAGS is only > > used during configure link tests and _not_ substituted? > > You are right. > > There's a proper fix that utilizes AM_CONDITIONAL a

Re: [PATCH] lto-plugin: use -pthread only for detected targets

2022-07-14 Thread Martin Liška
>> Thanks, >> Martin From 248469bd1b35d2c87d751b1adbc07c784ebd4830 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 14 Jul 2022 09:51:33 +0200 Subject: [PATCH] lto-plugin: use -pthread only for detected targets Use -pthread only if we are going to use pthread func

Re: [PATCH] lto-plugin: use -pthread only for detected targets

2022-07-14 Thread Richard Biener via Gcc-patches
On Thu, Jul 14, 2022 at 1:13 PM Martin Liška wrote: > > On 7/14/22 12:10, Richard Biener wrote: > > On Thu, Jul 14, 2022 at 12:03 PM Martin Liška wrote: > >> > >> On 7/13/22 14:15, Richard Biener wrote: > >>> Didn't we have it that way and not work? IIRC LDFLAGS is only > >>> used during configu