diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-05 23:18:40 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-06 23:35:56 -0800 |
commit | 1598f3ad06db9654a5d112136e40b630649405c3 (patch) | |
tree | d5fb9ffbf83f9ff6265969bc0637ef60e9797d7a | |
parent | 150bbac18bf0af28954bd505793de60f61918b07 (diff) | |
download | glibc-1598f3ad06db9654a5d112136e40b630649405c3.tar.gz |
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.
-rw-r--r-- | ChangeLog | 2 | ||||
-rwxr-xr-x | scripts/build-many-glibcs.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 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], |