Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2007 08:48:06 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        Vladimir Kushnir <vkushnir@bigmir.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: "-pthread" == "-lpthread" for shared libs in -CURRENT
Message-ID:  <20070613064806.GB39533@obiwan.tataz.chchile.org>
In-Reply-To: <20070602121928.G90169@kushnir1.kiev.ua>
References:  <20070602121928.G90169@kushnir1.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 >



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070613064806.GB39533>