From 4912af35822b36f9b0f339a085e942c8b2a3813b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 18 May 2019 22:45:14 -0400 Subject: build: Make link destination relative --- diff --git a/build b/build index 64c0d5f..ed7f89c 100755 --- a/build +++ b/build @@ -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.* -- cgit v0.9.1