summaryrefslogtreecommitdiffstats
path: root/libwolfssl.24-dbg.pkg/postinst
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 /libwolfssl.24-dbg.pkg/postinst
parent00491fdcc66e716d29e8091813c449935e2fcdf4 (diff)
Manage SONAME link with update-alternatives
Diffstat (limited to 'libwolfssl.24-dbg.pkg/postinst')
-rw-r--r--libwolfssl.24-dbg.pkg/postinst8
1 files changed, 6 insertions, 2 deletions
diff --git a/libwolfssl.24-dbg.pkg/postinst b/libwolfssl.24-dbg.pkg/postinst
index 9344a9f..7638dde 100644
--- a/libwolfssl.24-dbg.pkg/postinst
+++ b/libwolfssl.24-dbg.pkg/postinst
@@ -1,8 +1,12 @@
#!/bin/sh
soname='libwolfssl.so.24'
-lib="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+libfile="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24.1.0"
+liblink="/usr/lib/$(cat /etc/proteanos_arch)/libwolfssl.so.24"
if [ x"${1}" = x'configure' ]; then
- update-alternatives --install "${lib}" "${soname}" "${lib}.dbg" 20
+ update-alternatives --install "${libfile}" "${soname}" \
+ "${libfile}.dbg" 20
+ update-alternatives --install "${liblink}" "${soname}" \
+ "${liblink}.dbg" 20
fi