Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2006 14:44:54 -0500
From:      Mikhail Teterin <mi+mxe@aldan.algebra.com>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        ports@FreeBSD.org, gnome@FreeBSD.org
Subject:   Re: While we discuss libtool (-fpic vs. -fPIC)
Message-ID:  <1141155894.20664.59.camel@mteterin.us.murex.com>
In-Reply-To: <20060228192453.GA84695@xor.obsecurity.org>
References:  <1141151381.20664.19.camel@mteterin.us.murex.com> <20060228192453.GA84695@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=F5 =D7=D4, 2006-02-28 =D5 14:24 -0500, Kris Kennaway =D0=C9=DB=C5:
> Not sure what you're requesting precisely, but -fPIC and not -fpic is
> correct on amd64 and ia64.

I'm requesting, libtool is changed to use `-fpic' instead of `-fPIC' on
all arches except sparc64. This is more efficient, and is what
bsd.lib.mk does:

.if !defined(PICFLAG)
.if ${MACHINE_ARCH} =3D=3D "sparc64"
PICFLAG=3D-fPIC
.else
PICFLAG=3D-fpic
.endif
.endif

The performance difference is slight, and is not worth chasing every
shared-library building port. But if we can improve hundreds of ports at
once by correcting libtool, we certainly should.

Yours,

	-mi




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1141155894.20664.59.camel>