[maemo-developers] n800 - most libraries compiled witout -fPIC, intentional?

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed Apr 18 12:05:37 EEST 2007
Hi,

ext Frantisek Dufka wrote:
> I tried prelink on latest N800 firmware and it looks like most libraries
> (gtk,dbus,SDL,..) are not compiled with -fPIC. I see "Cannot prelink
> against non-PIC shared library" error message for most libraries.
> 
> Is this a bug or is there a reason? In previous version it was just
> libSDL, now it is almost everything.
> 
> Is this some sort of optimization? It may not matter much when using the
> maemo-invoker but it may cause higher memory consumption and slower
> dynamic linking for normal cases.

It was a (new) bug noticed too little time before the latest release
so there was not enough time to find the root cause & fix & re-build
everything needed.  The effect is a couple of secs lost at bootup and
a couple of MB of RAM lost after device is up (compared to system that
would be fully prelinked).

It will be fixed in the next release whenever that will happen
(hopefully along with libSDL :-)).


	- Eero

More information about the maemo-developers mailing list