Date: Wed, 19 Apr 2006 12:35:07 -0500 From: "Larry Rosenman" <ler@lerctr.org> To: "'Kris Kennaway'" <kris@obsecurity.org> Cc: freebsd-ports@freebsd.org Subject: RE: -fPIC for a port that is just a library on amd64? Message-ID: <023e01c663d7$9a10d270$0202fea9@aus.pervasive.com> In-Reply-To: <20060419173254.GB70979@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Kris Kennaway wrote: > 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)? >> >> I was able to force the issue with CFLAGS=-fPIC make;CFLAGS=-fpic >> make install, 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. > > If it's only compiling a shared library object (not static object or > other binaries), then adding CFLAGS+= -fPIC to the port makefile is > acceptable. Better, add it to the software makefile and contribute > your patch back upstream. > > Kris It's just compiling a static object (a libxdiff.a). I just submitted a patch to the port that if ${MACHINE} == amd64 I do the CFLAGS+= -fPIC but I'm not sure that's acceptable to you folks on portmgr. I have a port (pecl-xdiff) that needs to have the .a have the -fPIC :( LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?023e01c663d7$9a10d270$0202fea9>