Strip *.so* and not only executable files
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Feb 2014 15:36:18 +0000 (16:36 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 4 Feb 2014 17:10:15 +0000 (18:10 +0100)
commit12d150727a8dff2d6a4c3013936c27fe71ce588d
treeb5c627479cfaa513b66a77431bb9185b007355cf
parentdcd0b3cc7b585835a9f4fb76264919946456dcaf
Strip *.so* and not only executable files

Our current stripping strategy requires that shared libraries have the
executable permission. However, this is by far not something
recognized as a standard behavior: Debian/Ubuntu distributions for
example do not have executable permissions on their
libraries. Therefore, pushing to upstream packages fixes that add the
executable permissions is not easy.

As a result, this commit improves the stripping logic so that it not
only strips the files that are executable, but also the ones that
match '*.so*', which should match both the shared libraries and the
dlopen()'able plugins, as long as they have a .so extension.

Thanks to this addition, a number of manual "chmod +x" done by various
packages can be removed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile
package/gcc/gcc-final/gcc-final.mk
package/gettext/gettext.mk
package/libiconv/libiconv.mk
package/pciutils/pciutils.mk
package/sunxi-mali/sunxi-mali.mk