[oe] Revert "package bbclass: strip static libs as well"
Holger Hans Peter Freyther
holger+oe at freyther.de
Fri Oct 23 09:33:10 UTC 2009
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 :)
> + 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.
The last bit is that I would like to put /usr/lib/libc_nonshared.a into the
libc-dev package
z.
More information about the Openembedded-devel
mailing list