diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-08-06 17:44:04 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-08-06 17:44:04 (EDT) |
commit | fab24d25f3dd4f1aa24dbe1ac02def2d4c10e816 (patch) | |
tree | 45cd8100fc688216b279a0319cd4e86174e1c830 /build | |
parent | 00491fdcc66e716d29e8091813c449935e2fcdf4 (diff) |
Manage SONAME link with update-alternatives
Diffstat (limited to 'build')
-rwxr-xr-x | build | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -61,7 +61,10 @@ install_std install_dbg: build oh-fixperms -d $(destdir) set -e; \ lib="$$(ls $(destdir)/usr/lib/$(arch)/libwolfssl.so.$(abi_ver).*)"; \ - mv "$${lib}" "$${lib}.$(variant)" + mv "$${lib}" "$${lib}.$(variant)"; \ + rm -f $(destdir)/usr/lib/$(arch)/libwolfssl.so.$(abi_ver); \ + ln -sf "$${lib##*/}.$(variant)" \ + $(destdir)/usr/lib/$(arch)/libwolfssl.so.$(abi_ver).$(variant) set -e; if [ x"$(variant)" != x'dbg' ]; then \ oh-strip -d $(destdir); \ OPK_PACKAGES="\ |