Mesa (9.1): osmesa: link against static libglapi library too to get the gl exports

Maarten Lankhorst mlankhorst at kemper.freedesktop.org
Tue Jul 16 08:21:31 UTC 2013


Module: Mesa
Branch: 9.1
Commit: e790e2489535538ac0a7d1486ca6bb1f002c7700
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e790e2489535538ac0a7d1486ca6bb1f002c7700

Author: Maarten Lankhorst <maarten.lankhorst at canonical.com>
Date:   Tue Jul 16 10:18:38 2013 +0200

osmesa: link against static libglapi library too to get the gl exports

This should fix missing symbols in a osmesa built against shared glapi
osmesa build. All opengl exports were missing that are defined in the
static glapi, so link against both to fix this.

This is a candidate for the stable series.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47824
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com>
(cherry picked from commit b20b2b6dc8b72fc099afb9690f61596e1d0b0902)

---

 src/mesa/drivers/osmesa/Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
index 2503401..4bde617 100644
--- a/src/mesa/drivers/osmesa/Makefile.am
+++ b/src/mesa/drivers/osmesa/Makefile.am
@@ -40,11 +40,11 @@ lib at OSMESA_LIB@_la_SOURCES = osmesa.c
 
 lib at OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -no-undefined
 
-if HAVE_SHARED_GLAPI
-GLAPI_LIB = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
-else
 GLAPI_LIB = $(top_builddir)/src/mapi/glapi/libglapi.la
+if HAVE_SHARED_GLAPI
+GLAPI_LIB += $(top_builddir)/src/mapi/shared-glapi/libglapi.la
 endif
+
 lib at OSMESA_LIB@_la_LIBADD = \
 	$(top_builddir)/src/mesa/libmesa.la \
 	$(GLAPI_LIB) \




More information about the mesa-commit mailing list