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

Koen Kooi k.kooi at student.utwente.nl
Fri Oct 23 09:46:22 UTC 2009


On 23-10-09 11:33, Holger Hans Peter Freyther wrote:
> On Friday 23 October 2009 11:14:48 Koen Kooi wrote:
>> On 23-10-09 10:36, Phil Blundell wrote:
>
>>> An alternative (or an addition) to the -static packaging would be to
>>> arrange for .a files (and .o files, I guess) to be stripped with "strip
>>> --strip-debug" (or perhaps --strip-unneeded).  This should leave enough
>>> symbol data in the files for them to remain usable.
>>
>> Something like this (but without the mailer induced linewrapping)?
>>
>> diff --git a/classes/package.bbclass b/classes/package.bbclass
>> index 046351a..2bf55e3 100644
>> --- a/classes/package.bbclass
>> +++ b/classes/package.bbclass
>> @@ -183,6 +183,9 @@ def runstrip(file, d):
>>            extraflags = "--remove-section=.comment --remove-section=.note
>> --strip-unneeded"
>>        elif "shared" in result or "executable" in result:
>>            extraflags = "--remove-section=.comment --remove-section=.note"
>> +       elif file.endswith(".a")::
>
> one colon  please :)

Right :)

>> +                extraflags = "--remove-section=.comment --strip-debug"
>> +
>
> and I would prefer to have debug symbols in there. you can always strip them
> out of the final binary but you can not add them when they are gone.

Installing foo-dbg doesn't work?

> The last bit is that I would like to put /usr/lib/libc_nonshared.a into the
> libc-dev package

Glibc has its own custom packaging, which we'll probably need to tweaks 
as well.

Anyways, I'll start accumulating patches in 
http://dominion.thruhere.net/git/cgit.cgi/openembedded/log/?h=koen/static-libs-rework 
and change those to work in all your comments.

regards,

Koen





More information about the Openembedded-devel mailing list