Date: Thu, 14 Feb 2013 15:50:01 +0100 From: Pietro Cerutti <gahr@FreeBSD.org> To: Alex Dupre <ale@FreeBSD.org> Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org Subject: Re: svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook Message-ID: <20130214145000.GN58762@gahrfit.gahr.ch> 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
--7pXD3OQNRL3RjWCz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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> >=20 > 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. --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --7pXD3OQNRL3RjWCz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEc+ZgACgkQwMJqmJVx944gKACeIvDeA5DzISQffbeUR4frc+yE CnoAnjLaSmQXm6ebhvklbJ/H6ymezHyn =YZiW -----END PGP SIGNATURE----- --7pXD3OQNRL3RjWCz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130214145000.GN58762>