Mesa (master): shared-glapi: Install libglapi.so.0.0.0 and .0 links in lib/ .

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Jul 26 05:39:41 UTC 2012


Module: Mesa
Branch: master
Commit: 16cba717c21f9f6a23d4934c5df898a4b9ce7fd1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16cba717c21f9f6a23d4934c5df898a4b9ce7fd1

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Mon Jul 23 15:22:06 2012 -0700

shared-glapi: Install libglapi.so.0.0.0 and .0 links in lib/.

We already provided these files on 'make install', but only created a
'libglapi.so' in the top-level lib/ convenience folder.  We used to
create all three, but at some point in the build system churn, it broke.

Various applications (like the ES2 conformance suite) seem to link
against libglapi.so.0, so without these links, setting LD_LIBRARY_PATH
and LIBGL_DRIVERS_PATH can lead to using /usr/lib/libglapi.so.0 with
/home/whatever/libGL.so, which leads to API calls getting routed
incorrectly (i.e. glCompileShader -> _mesa_LinkProgramARB), which leads
to rage problems.

Preserve developer sanity...install links.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mapi/shared-glapi/Makefile.am |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mapi/shared-glapi/Makefile.am b/src/mapi/shared-glapi/Makefile.am
index 9485683..8db7688 100644
--- a/src/mapi/shared-glapi/Makefile.am
+++ b/src/mapi/shared-glapi/Makefile.am
@@ -25,4 +25,6 @@ AM_CPPFLAGS =							\
 
 all-local: libglapi.la
 	$(MKDIR_P) $(top_builddir)/$(LIB_DIR)
-	ln -f .libs/libglapi.so.0.0.0 $(top_builddir)/$(LIB_DIR)/libglapi.so
+	ln -f .libs/libglapi.so.0.0.0 $(top_builddir)/$(LIB_DIR)/libglapi.so.0.0.0
+	ln -sf libglapi.so.0.0.0 $(top_builddir)/$(LIB_DIR)/libglapi.so.0
+	ln -sf libglapi.so.0 $(top_builddir)/$(LIB_DIR)/libglapi.so




More information about the mesa-commit mailing list