diff options
author | Farid Zakaria <farid.m.zakaria@gmail.com> | 2021-12-21 05:51:04 -0800 |
---|---|---|
committer | Farid Zakaria <farid.m.zakaria@gmail.com> | 2021-12-21 06:05:13 -0800 |
commit | d02a3ecdd7b811683d319efa9d24bdae09a3036d (patch) | |
tree | 4a5e0b5d29a22517626833a9f8bc05fd34aed47a /tests | |
parent | dc375bc7cd94218208387e749a1c552a947e6a72 (diff) | |
download | patchelf-d02a3ecdd7b811683d319efa9d24bdae09a3036d.tar.gz |
Code clarity and test working with musl
Made changes according to feedback from @Mic92 such as moving the
`rewriteSections` inline into every method.
Improved `replace-add-needed.sh` to work with musl libc
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/replace-add-needed.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/replace-add-needed.sh b/tests/replace-add-needed.sh index b486897..4c88fd9 100755 --- a/tests/replace-add-needed.sh +++ b/tests/replace-add-needed.sh @@ -12,7 +12,7 @@ cp libbar.so ${SCRATCH}/ cd ${SCRATCH} -libcldd=$(ldd ./simple | grep -oP "(?<=libc.so.6 => )[^ ]+") +libcldd=$(ldd ./simple | awk '/ => / { print $3 }' | grep .so | head -n 1) # We have to set the soname on these libraries ${PATCHELF} --set-soname libbar.so ./libbar.so |