diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-18 22:45:14 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-05-18 22:45:14 (EDT) |
commit | 4912af35822b36f9b0f339a085e942c8b2a3813b (patch) | |
tree | fda9d14f0a34fb78d3c2f3fd508c135dc71fa50c /build | |
parent | 5dc316cbba4084cbbd9134bf72cca6ea41677a27 (diff) |
build: Make link destination relative
Diffstat (limited to 'build')
-rwxr-xr-x | build | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -208,8 +208,8 @@ install-native: # libfoo.so.x, not libfoo.x.y.z as libtool generates. set -e; \ for link in $(destdir)$(libdir)/*.so; do \ - ln -sf $$(ls $${link}.* | sed 's|^$(destdir)||; q;') \ - $(destdir)$(tgtlibdir)/$${link##*/}; \ + lib=$$(ls $${link}.* | head -n 1); \ + ln -sf ../../$${lib##*/} $(destdir)$(tgtlibdir)/$${link##*/}; \ done # Remove libitm files. rm -f $(destdir)$(libdir)/libitm.* |