diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-18 22:49:55 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-18 22:49:55 (EDT) |
commit | 9e13bbc29c3f0bf99497bbef1c62d0302657a66e (patch) | |
tree | a815c18d784c79d6abc621abafc7d5e983b3c404 | |
parent | 4912af35822b36f9b0f339a085e942c8b2a3813b (diff) |
build: Use sed instead of prefix removals
-rwxr-xr-x | build | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -208,8 +208,9 @@ install-native: # libfoo.so.x, not libfoo.x.y.z as libtool generates. set -e; \ for link in $(destdir)$(libdir)/*.so; do \ - lib=$$(ls $${link}.* | head -n 1); \ - ln -sf ../../$${lib##*/} $(destdir)$(tgtlibdir)/$${link##*/}; \ + lib=$$(ls $${link}.* | sed 's|^.*/||; q;'); \ + link=$$(printf '%s\n' $${link} | sed 's|^.*/||;'); \ + ln -sf ../../$${lib} $(destdir)$(tgtlibdir)/$${link}; \ done # Remove libitm files. rm -f $(destdir)$(libdir)/libitm.* |