[clutter/multi-backend: 18/22] build: Make sure to remove colliding shared libraries



commit 6c8c0edf303da8d2586df4f1b1483dd717a56d54
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Fri Oct 14 12:00:44 2011 +0100

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/Makefile.am b/clutter/Makefile.am
index 400c56c..94a7fab 100644
--- a/clutter/Makefile.am
+++ b/clutter/Makefile.am
@@ -767,6 +767,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; }; \
 	    } \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]