From fab24d25f3dd4f1aa24dbe1ac02def2d4c10e816 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 06 Aug 2020 17:44:04 -0400 Subject: Manage SONAME link with update-alternatives --- (limited to 'build') 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="\ -- cgit v0.9.1