From owner-cvs-ports@FreeBSD.ORG Thu Oct 20 08:39:33 2005 Return-Path: X-Original-To: cvs-ports@FreeBSD.org Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E814616A420; Thu, 20 Oct 2005 08:39:33 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9118C43D68; Thu, 20 Oct 2005 08:39:33 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 105E31A3C26; Thu, 20 Oct 2005 01:39:32 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DE58A51364; Thu, 20 Oct 2005 04:39:30 -0400 (EDT) Date: Thu, 20 Oct 2005 04:39:30 -0400 From: Kris Kennaway To: Volker Stolz Message-ID: <20051020083930.GA24992@xor.obsecurity.org> References: <200510191912.j9JJCruT013822@repoman.freebsd.org> <20051019191435.GA26002@xor.obsecurity.org> <20051020080639.GB73991@i2.informatik.rwth-aachen.de> <20051020081305.GA22079@xor.obsecurity.org> <20051020082453.GC73991@i2.informatik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20051020082453.GC73991@i2.informatik.rwth-aachen.de> User-Agent: Mutt/1.4.2.1i Cc: cvs-ports@FreeBSD.org, ports-committers@FreeBSD.org, Emanuel Haupt , Kris Kennaway Subject: Re: cvs commit: ports/japanese/xdtp Makefile X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 08:39:34 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 20, 2005 at 10:24:53AM +0200, Volker Stolz wrote: > On Thu, Oct 20, 2005 at 04:13:05AM -0400, Kris Kennaway wrote: > > > > > . compile with -fPIC, this fixes build on amd64 > > > >=20 > > > > Please don't pessimize all architectures like this. You shouldn't > > > > even be pessimizing all files on amd64 with this flag, only those t= hat > > > > need them. > > >=20 > > > Is this really such a strong pessimisation? > > > http://www.ukuug.org/events/linux2002/papers/pdf/dsohowto.pdf > > > "How To Write Shared Libraries" claims that this is almost a non-issu= e. > > > (Please rub my nose the archives I missed any discussion about the pr= os/cons.) > >=20 > > I don't know how much of an issue it is, but there's no reason not to > > do it correctly. >=20 > Increasing the number of conditionals in a port is another form of > pessimisation in my book. > > Maybe this could be done globally for CFLAGS on amd64? As I said, the correct thing to do is to patch the vendor sources to only add -fPIC to those compilations that require it (shared library objects). Whether or not it's usually a significant runtime pessimization, in FreeBSD we don't take the lazy way out. Kris --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDV1fCWry0BWjoQKURAl84AJ90glOeQwk7Wh47x2m+78CASNGAOgCgvqRT bpaI4CS4h1S5hYGCQGUrHXM= =wI9d -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--