From: Stéphane Graber Date: Tue, 25 Oct 2016 20:39:56 +0000 (-0400) Subject: Tweak libtool handling to work with Android X-Git-Tag: lxc-2.1.0~289^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1251%2Fhead;p=thirdparty%2Flxc.git Tweak libtool handling to work with Android Signed-off-by: Stéphane Graber --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index 8138a56e3..6bcb6da6f 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -298,8 +298,8 @@ endif install-exec-local: install-libLTLIBRARIES mkdir -p $(DESTDIR)$(datadir)/lxc install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc - rm $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.1 - mv $(DESTDIR)$(libdir)/liblxc.so.1.0.0 $(DESTDIR)$(libdir)/liblxc.so.@LXC_ABI@ + mv $(shell readlink -f $(DESTDIR)$(libdir)/liblxc.so) $(DESTDIR)$(libdir)/liblxc.so.@LXC_ABI@ + rm -f $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.1 cd $(DESTDIR)$(libdir); \ ln -sf liblxc.so.@LXC_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)); \ ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) liblxc.so