-fPIC and x86_64

Jakub Jelinek jakub at redhat.com
Tue Aug 23 20:01:15 UTC 2005


On Tue, Aug 23, 2005 at 03:57:55PM -0400, Bill Nottingham wrote:
> Orion Poplawski (orion at cora.nwra.com) said: 
> > I've gotten a request to build hdf with -fPIC because apparently when 
> > trying to build other packages that use it on x86_64 they complain.  hdf 
> > only provides static libs.
> > 
> > Is this the appropriate fix?
> 
> If it's linked into a shared object later, yes.

But in that case not just for x86_64, but for all architectures.
If the library is small and is expected to be only linked into small shared
libraries, -fpic can be used instead.
What small means is architecture dependent, on i386/x86_64 -fpic/-fPIC are
identical, on other arches it can mean e.g. 4K got entries limit or similar.

	Jakub




More information about the Fedora-maintainers mailing list