[oe] Revert "package bbclass: strip static libs as well"

Holger Hans Peter Freyther holger+oe at freyther.de
Fri Oct 23 08:23:43 UTC 2009


On Friday 23 October 2009 09:58:28 Koen Kooi wrote:

> > Why do you need .a files on the device? Is this normal operation or only
> > when installing -dev packages?
> 
> When installing -dev packages, yes. For example on the touchbook default
> image we ship a toolchain and -dev packages for clutter to allow people
> to build things on the target. By stripping the .a files we save about
> 200MiB.
> 
> I can think of a few solutions:
> 
> * build toolchain packages with -ggdbN where N < 3
> * use a safer stripping option in package.bbclass
> * blacklist libc_nonshared.a
> 
> Do you have more solutions and which do you prefer? I really like to
> avoid blowing up -dev packages if we can safely strip (most of) them.

I see. Yeah the -ggdb3 can make things quite big. The problem is if I want to 
link statically and debug having debug symbols and symbols around is quite 
helpful. Currently the .a files are just plain broken (worse than not 
installing).

One thing that pops back into my mind is to move .a files into a -static 
package? People that want to link statically can pick their .a files.

z.




More information about the Openembedded-devel mailing list