]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Tweak libtool handling to work with Android 1251/head
authorStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Oct 2016 20:39:56 +0000 (16:39 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 25 Oct 2016 20:40:21 +0000 (16:40 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/Makefile.am

index 8138a56e30760d0fb5f38a2b64c2f488b0e96d98..6bcb6da6f52b5a3b6b28c3418832e6c62d880c2a 100644 (file)
@@ -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