[Gllug] -fPIC option

rich at annexia.org rich at annexia.org
Sat Feb 1 17:11:17 UTC 2003


For a while I've been building shared libraries without the -fPIC
option. That was until I started to build the same library on Solaris,
and found it didn't work unless I added -fPIC. So my question is: why
does Linux let me build non-position-independent shared libraries?
Will these libraries break or suffer some sort of penalty? Or is Linux
just more capable in some way than Solaris that it doesn't require
position-independent code in shared libraries?

Rich.

-- 
Richard Jones, Red Hat Inc. (London, UK) http://www.redhat.com/software/ccm
http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list