[Mesa-dev] [PATCH] osmesa: Create a symlinked .so.8

Johannes Obermayr johannesobermayr at gmx.de
Sat Sep 1 14:44:19 PDT 2012


---
 src/mesa/drivers/osmesa/Makefile.am |    8 ++++++++
 1 Datei geändert, 8 Zeilen hinzugefügt(+)

diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
index db1d14f..0696036 100644
--- a/src/mesa/drivers/osmesa/Makefile.am
+++ b/src/mesa/drivers/osmesa/Makefile.am
@@ -47,6 +47,14 @@ all-local: lib at OSMESA_LIB@.la
 	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
 	ln -f .libs/lib at OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so;
 	ln -f .libs/lib at OSMESA_LIB@.so. at VERSION@ $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so. at VERSION@;
+
+# The version bump from 8.0.x to 9.0.0 can make the need of massive rebuilds on
+# current distributions when shipping an updated Mesa stack.
+# Because the soversion bump for OSMesa is not caused by a changed API we can
+# also symlink and ship a .so.8 to avoid such rebuilds.
+install-exec-hook:
+	cd $(DESTDIR)$(libdir) && \
+	ln -s lib at OSMESA_LIB@.so. at VERSION@ lib at OSMESA_LIB@.so.8;
 endif
 
 pkgconfigdir = $(libdir)/pkgconfig
-- 
1.7.10.4



More information about the mesa-dev mailing list