[Buildroot] sstrip vs. strip

Ulf Samuelsson ulf at atmel.com
Mon Aug 20 09:56:44 UTC 2007


sön 2007-08-19 klockan 23:58 +0200 skrev Cristian Ionescu-Idbohrn:
> If sstrip is selected (instead of the default strip) it needs to be built
> early, else things like this:
> 
> ,----
> | make[1]: Leaving directory `buildroot/build_i486/gmp-4.2.1'
> | buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip
> | --strip-unneeded buildroot/build_i486/staging_dir/usr/lib/libgmp.so*
> | /bin/sh: buildroot/build_i486/staging_dir/usr/bin/i486-linux-uclibc-sstrip:
> | No such file or directory
> | make: *** [buildroot/build_i486/staging_dir/usr/lib/libgmp.so]
> | Error 127
> `----
> 

> may occur.
> 
> Moreover, sstrip does not have any options, so that options like
> s-/--strip-all, --strip-unneeded, --remove-section and so on need to be
> hidden behind $(STRIP).
> 
> 
> Cheers,
> 


I generated a patch to fix this:

It makes sstrip-host a prerequisite of building binutils
and defines some symbolics for all the flags


I sed'ed package/*/*.mk to replace
--strip-unneeded with $(STRIP_STRIP_UNNEEDED) etc.
and defined STRIP_STRIP_UNNEEDED etc. as empty when sstrip is
to be used and "--strip-unneeded" etc. otherwise.

The patch was too large so I am resending it here zipped.

Pls try it out.

BR
Ulf Samuelsson


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sstrip.patch.bz2
Type: application/x-bzip
Size: 7519 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20070820/47927d87/attachment.bz>


More information about the buildroot mailing list