Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 10:19:22 -0500
From:      Eitan Adler <eadler@freebsd.org>
To:        Alex Dupre <ale@freebsd.org>
Cc:        svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org, Pietro Cerutti <gahr@freebsd.org>
Subject:   Re: svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook
Message-ID:  <CAF6rxgmY2s79rTi8=2uOif2Oq3r0mN1bAZE2JSgV51tKwmFgjA@mail.gmail.com>
In-Reply-To: <511CF790.7040804@FreeBSD.org>
References:  <201302141435.r1EEZsXu042558@svn.freebsd.org> <511CF790.7040804@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14 February 2013 09:41, Alex Dupre <ale@freebsd.org> wrote:
> Pietro Cerutti ha scritto:
>>       If a port insists on linking <literal>-lpthread</literal>
>> +     directly, patch it to use <literal>-pthread</literal>.</para>
>
> Why bother?

Because a program that uses pthreads *must* use -pthread to both
compile and link and not use -lpthread.  That it happens to work is an
implementation detail not be relied upon.



-- 
Eitan Adler
Source, Ports, Doc committer
Bugmeister, Ports Security teams



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF6rxgmY2s79rTi8=2uOif2Oq3r0mN1bAZE2JSgV51tKwmFgjA>