Makefile: fix stripping of ld.so and libpthread for merged /usr
authorJérôme Pouiller <jezz@sysmic.org>
Wed, 9 Nov 2016 10:57:27 +0000 (11:57 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 9 Nov 2016 22:14:17 +0000 (23:14 +0100)
commit179c5f1b87a46ac272d66a947fddbf7c0fdeb442
treed8288fa1da445b18e508680ed2d597529b637754
parent2501039e3f6f105745be48cbc3b1cb48b00d519e
Makefile: fix stripping of ld.so and libpthread for merged /usr

If 'lib' is a symlink (as is the case when BR2_ROOTFS_MERGED_USR=y),
'find lib' does not return the correct result. So, until now,
libpthread*.so* and ld-*.so* were not stripped when 'lib' was a symlink.

We fix this by using 'find lib/' instead of 'find lib'. For consistency
reason, we also do the same change for the 'find' that removes .a and
.la files.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
[Thomas: slightly improved the commit log.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile