Date: Wed, 19 Apr 2006 13:32:55 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Larry Rosenman <ler@lerctr.org> Cc: freebsd-ports@freebsd.org Subject: Re: -fPIC for a port that is just a library on amd64? Message-ID: <20060419173254.GB70979@xor.obsecurity.org> In-Reply-To: <00f701c663c0$e71c73b0$0202fea9@aus.pervasive.com> References: <00f701c663c0$e71c73b0$0202fea9@aus.pervasive.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--V0207lvV8h4k8FAm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 19, 2006 at 09:52:38AM -0500, Larry Rosenman wrote: > What's the best way to get a port to add -fPIC to the compile for a port > that > generates just an archive library (textproc/libxdiff)? >=20 > I was able to force the issue with CFLAGS=3D-fPIC make;CFLAGS=3D-fpic make > install,=20 > but it would be nice if the port could do it automagically. It would be nice if the software was already correct so it happened automatically :-) > The issue is that the pecl-xdiff extension uses this library and wants to= be > a shared object.=20 If it's only compiling a shared library object (not static object or other binaries), then adding CFLAGS+=3D -fPIC to the port makefile is acceptable. Better, add it to the software makefile and contribute your patch back upstream. Kris --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFERnRGWry0BWjoQKURArtpAKCg1wlSoMIZZAytIHGdOutHq9qnjQCePqTh zsI54KQZfnsuZBon7Xi3tBA= =UwJ/ -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060419173254.GB70979>