From 3987db16595cb52c1b309ad8251066fa63c71651 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 14 Oct 2011 12:00:44 +0100 Subject: [PATCH] build: Make sure to remove colliding shared libraries The compatibility links should take over any existing installed shared library with the same soname, to avoid ldd creating stale links. --- clutter/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/Makefile.am b/clutter/Makefile.am index 404414c3a..40f5f8414 100644 --- a/clutter/Makefile.am +++ b/clutter/Makefile.am @@ -769,6 +769,9 @@ libclutter_@CLUTTER_API_VERSION@_la_LDFLAGS = \ install-exec-local: for lib in `echo $(compat_libs)`; do \ + (cd $(DESTDIR)$(libdir) && \ + rm -f $$lib.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION); \ + ) ; \ (cd $(DESTDIR)$(libdir) && \ { ln -s -f libclutter-$(CLUTTER_API_VERSION).so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib.0 || \ { rm -f $$lib.0 && ln -s libclutter-1.0.so.0.$(CLUTTER_LT_CURRENT).$(CLUTTER_LT_REVISION) $$lib.0; }; \