svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook
Pietro Cerutti
gahr at FreeBSD.org
Thu Feb 14 14:50:12 UTC 2013
On 2013-Feb-14, 15:41, Alex Dupre 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?
What I have seen in some cases is that the flags are used during
compilation too. In this case, using -lpthread issues a warning,
while using -pthread does not.
GCC, gcc: -lpthread: linker input file unused because linking not done
Clang, cc: warning: -lpthread: 'linker' input unused
It's more for consistency than correctness.
Admittedly, I'm not everytime patching s|-lpthread|-pthread| on my
PTHREAD_CFLAGS / PTHREAD_LIBS removal campaign.
--
Pietro Cerutti
The FreeBSD Project
gahr at FreeBSD.org
PGP Public Key:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-doc-head/attachments/20130214/7995f02a/attachment.sig>
More information about the svn-doc-head
mailing list