tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xf86-video-intel vs pthreads

In article <>,
Sean Boudreau  <> wrote:
>On Fri, Jun 03, 2011 at 08:54:13AM -0400, OBATA Akio wrote:
>> On Fri, 03 Jun 2011 21:43:53 +0900, Sean Boudreau <> 
>> wrote:
>> > My first thought was only $(PTHREAD_LIBS), but why is
>> > PTHREAD_LIBS empty on NetBSD?
>> Because with -pthread linker flag, pthread library will be linked on
>> NetBSD,
>> so no need to specify pthread library with -lpthread.
>Would it hurt though?  Here they're really listing libs,
>not linker flags.

It is wrong from a portability perspective. Specifying -pthread in the compiler
line is supposed to take care of all compilation and linking flags. Adding
extra's might break things.


Home | Main Index | Thread Index | Old Index