about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-01-05 23:18:40 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-06 23:35:56 -0800
commit1598f3ad06db9654a5d112136e40b630649405c3 (patch)
treed5fb9ffbf83f9ff6265969bc0637ef60e9797d7a /scripts
parent150bbac18bf0af28954bd505793de60f61918b07 (diff)
downloadglibc-1598f3ad06db9654a5d112136e40b630649405c3.tar.gz
glibc-1598f3ad06db9654a5d112136e40b630649405c3.tar.xz
glibc-1598f3ad06db9654a5d112136e40b630649405c3.zip
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  <palmer@sifive.com>

       * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
       in subdirectories of lib.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-many-glibcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index f358307424..75a920a161 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],