diff mbox series

[4/4] Strip shared objects in subdirectories of lib

Message ID 20180106073231.20491-5-palmer@dabbelt.com
State New
Headers show
Series [1/4] Add RISC-V dynamic relocations to elf.h | expand

Commit Message

Palmer Dabbelt Jan. 6, 2018, 7:32 a.m. UTC
The RISC-V port will have libraries in subdirectories of lib, like
"lib64/lp64d".  This adds support for stripping these installed
libraries.
---
 ChangeLog                    | 2 ++
 scripts/build-many-glibcs.py | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index 246d2326ab90..f9dd36033bc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,8 @@ 
 	* sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
 	define.
 	(VDSO_HASH_LINUX_4_15): Likewise.
+	* scripts/build-many-glibcs.py (class Glibc): Strip shared objects
+	in subdirectories of lib.
 
 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index f358307424a6..75a920a1611e 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],