From owner-svn-doc-all@FreeBSD.ORG Thu Feb 14 15:01:34 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2FAEFA24 for ; Thu, 14 Feb 2013 15:01:34 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from andxor.it (relay.andxor.it [195.223.2.3]) by mx1.freebsd.org (Postfix) with SMTP id 0455D9C1 for ; Thu, 14 Feb 2013 15:01:29 +0000 (UTC) Received: (qmail 6435 invoked from network); 14 Feb 2013 15:01:25 -0000 Received: from unknown (HELO alex.andxor.it) (192.168.2.30) by andxor.it with SMTP; 14 Feb 2013 15:01:25 -0000 Message-ID: <511CFC45.4060804@FreeBSD.org> Date: Thu, 14 Feb 2013 16:01:25 +0100 From: Alex Dupre User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:18.0) Gecko/20100101 Firefox/18.0 SeaMonkey/2.15 MIME-Version: 1.0 To: gahr@FreeBSD.org Subject: Re: svn commit: r40970 - head/en_US.ISO8859-1/books/porters-handbook References: <201302141435.r1EEZsXu042558@svn.freebsd.org> <511CF790.7040804@FreeBSD.org> <20130214145000.GN58762@gahrfit.gahr.ch> In-Reply-To: <20130214145000.GN58762@gahrfit.gahr.ch> X-Enigmail-Version: 1.5.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: svn-doc-head@freebsd.org, svn-doc-all@freebsd.org, doc-committers@freebsd.org X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2013 15:01:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pietro Cerutti ha scritto: > 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. >> >> 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. If such patching is done only to silence a (not so common) warning I'd say that it doesn't worth. If such patching could also require the following patch: > If building the port errors out with + unrecognized > option '-pthread', + it may be desirable to use > cc as linker by + setting > CONFIGURE_ENV to + LD=${CC}. I'd say we should remove the suggestion entirely. It seems to me we are creating a problem ourself: a software is designed to use 'ld' directly with -lpthread, we are suggesting to modify it with -pthread and then modify the linking because we broke it. - -- Alex Dupre -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/ iEYEARECAAYFAlEc/EUACgkQgRXp2M5fVU3LmgCfXvPhyF46E5rIUcaP3vRf1koM SqMAn22L9BrMNQi83n3P29m7ocGtDJUw =EIUl -----END PGP SIGNATURE-----