From e9160975eeb9796ff3550e8c2c35db63157a409b Mon Sep 17 00:00:00 2001 From: Michael Baentsch <57787676+baentsch@users.noreply.github.com> Date: Fri, 5 Aug 2022 16:56:30 +0200 Subject: [PATCH] fix liboqs.so.version install (#387) --- Configurations/unix-Makefile.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 17937063411d0..e52ff981a4da7 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -790,10 +790,11 @@ endif ifneq (,$(wildcard $(OQSLIBDIR)/liboqs.so.0*)) @set -e; for i in $(OQSLIBDIR)/liboqs.so.0.*; do \ fn=`basename $$i`; \ + sn=`basename $(OQSLIBDIR)/liboqs.so.?`; \ $(ECHO) "install $(OQSLIBDIR)/$$fn $(DESTDIR)$(libdir)"; \ - $(ECHO) "cd $(DESTDIR)$(libdir) && ln -sf $$fn liboqs.so && ln -sf $$fn liboqs.so.0 && cd -"; \ + $(ECHO) "cd $(DESTDIR)$(libdir) && ln -sf $$fn liboqs.so && ln -sf $$fn $$sn && cd -"; \ install $(OQSLIBDIR)/$$fn $(DESTDIR)$(libdir); \ - cd $(DESTDIR)$(libdir) && ln -sf $$fn liboqs.so && ln -sf $$fn liboqs.so.0 && cd -; \ + cd $(DESTDIR)$(libdir) && ln -sf $$fn liboqs.so && ln -sf $$fn $$sn && cd -; \ done endif