From 1598f3ad06db9654a5d112136e40b630649405c3 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 5 Jan 2018 23:18:40 -0800 Subject: Strip shared objects in subdirectories of lib The RISC-V port will have libraries in subdirectories of lib, like "lib64/lp64d". This adds support for stripping these installed libraries. 2018-01-06 Palmer Dabbelt * scripts/build-many-glibcs.py (class Glibc): Strip shared objects in subdirectories of lib. --- scripts/build-many-glibcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index f358307..75a920a 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -1377,7 +1377,7 @@ class Glibc(object): if self.ctx.strip: cmdlist.add_command('strip', ['sh', '-c', - ('%s %s/lib*/*.so' % + ('%s $(find %s/lib* -name "*.so")' % (self.tool_name('strip'), installdir))]) cmdlist.add_command('check', ['make', 'check']) cmdlist.add_command('save-logs', [self.ctx.save_logs], -- cgit v1.1