summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick 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)
commitfab24d25f3dd4f1aa24dbe1ac02def2d4c10e816 (patch)
tree45cd8100fc688216b279a0319cd4e86174e1c830 /build
parent00491fdcc66e716d29e8091813c449935e2fcdf4 (diff)
Manage SONAME link with update-alternatives
Diffstat (limited to 'build')
-rwxr-xr-xbuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/build b/build
index 7b9d931..03d5287 100755
--- a/build
+++ b/build
@@ -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="\