From owner-svn-doc-head@FreeBSD.ORG Thu Feb 14 14:50:12 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9830F5EB; Thu, 14 Feb 2013 14:50:12 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel09.rubas.ch (cpanel09.rubas.ch [195.182.222.79]) by mx1.freebsd.org (Postfix) with ESMTP id 22FD093B; Thu, 14 Feb 2013 14:50:12 +0000 (UTC) Received: from 98-41.199-178.cust.bluewin.ch ([178.199.41.98]:53238 helo=gahrfit.gahr.ch) by cpanel09.rubas.ch with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1U608S-0000XQ-69; Thu, 14 Feb 2013 15:50:04 +0100 Date: Thu, 14 Feb 2013 15:50:01 +0100 From: Pietro Cerutti To: Alex Dupre Subject: Re: svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook Message-ID: <20130214145000.GN58762@gahrfit.gahr.ch> References: <201302141435.r1EEZsXu042558@svn.freebsd.org> <511CF790.7040804@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7pXD3OQNRL3RjWCz" Content-Disposition: inline In-Reply-To: <511CF790.7040804@FreeBSD.org> X-PGP-Key: 0x9571F78E X-PGP-Fingerprint: 1203 92B5 3919 AF84 9B97 28D6 C0C2 6A98 9571 F78E User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel09.rubas.ch X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Get-Message-Sender-Via: cpanel09.rubas.ch: authenticated_id: gahr@gahr.ch Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gahr@FreeBSD.org List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 14:50:12 -0000 --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 -lpthread > > + directly, patch it to use -pthread. >=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--