amd64 and -fPIC

pfgshield-freebsd at yahoo.com pfgshield-freebsd at yahoo.com
Tue Mar 7 19:07:18 UTC 2006


--- Kris Kennaway <kris at obsecurity.org> ha scritto: 

...
> > 
> >     That doesn't solve the problem, which is: the static library is
> >     almost useless, and users might actually want or need to use the
> >     static library.
> 
> Why do you say it's useless?  The point of a static library is for
> static linking, and this works fine on amd64 or any other
> architecture.
> 

The problem is mixing static and shared libraries: this is perfectly legal and
very often desired in most platforms except on amd64. There are reasons to use
static libraries, there are reasons to use shared libraries, and there are
reasons to want to use both.  So unless the *.a standlaone library is only used
on  one (static) application, -fPIC looks pretty much unavoidable.

cheers,

   Pedro.


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it


More information about the freebsd-ports mailing list