Re: -fPIC and x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 23, 2005 at 03:57:55PM -0400, Bill Nottingham wrote:
> Orion Poplawski (orion@xxxxxxxxxxxxx) 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


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux