Re: "-pthread" == "-lpthread" for shared libs in -CURRENT

From: Jeremie Le Hen <jeremie_at_le-hen.org>
Date: Wed, 13 Jun 2007 08:48:06 +0200
Hi,

On Sat, Jun 02, 2007 at 12:50:58PM +0300, Vladimir Kushnir wrote:
> > From old gcc specs:
> 
>  *lib:
>  %{!shared:
>  %{!pg: %{pthread:-lpthread} -lc}
>  %{pg:  %{pthread:-lpthread_p} -lc_p}
>  }
> 
>  Now:
> 
>  *lib:
>  %{!shared:
>  %{!pg: %{pthread:-lpthread} -lc}
>  %{pg:  %{pthread:-lpthread_p} -lc_p}
>  }
>  %{shared: %{pthread:-lpthread} -lc}
>  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  Is this behaviour intended?

I take advantage of this thread to ask something I've always wanted to
understand but never have an explanation.

What prevented to link shared libraries against libc with the old GCC?

Thank you.
Best regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
Received on Wed Jun 13 2007 - 04:48:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC