Subject: Re: pthread.builtin.mk under NetBSD
To: Rui-Xiang Guo <rxg@myrealbox.com>
From: None <cube@cubidou.net>
List: tech-pkg
Date: 06/21/2005 16:43:07
On Tue, Jun 21, 2005 at 10:17:07PM +0800, Rui-Xiang Guo wrote:
> Hi, all.
> In pthread.builtin.mk, I found these lines -
> [...]
> .    if ${OPSYS} == "NetBSD"
> BUILDLINK_LIBS.pthread=         # empty
> [...]
> 
> Why we set BUILDLINK_LIBS.pthread as null even we already have libpthread
> after 2.0? Did I misunderstand something?

In NetBSD you shouldn't link to libpthread, but instead use the
-pthread flag of gcc.

This is exactly what pthread.builtin.mk does in the NetBSD case.

Quentin Garnier.