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

Jeremie Le Hen jeremie at le-hen.org
Wed Jun 13 06:48:22 UTC 2007


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 >


More information about the freebsd-current mailing list