gallium/osmesa: link against static libglapi library too to get the gl exports
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 20 Aug 2013 08:44:53 +0000 (10:44 +0200)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 20 Aug 2013 08:44:53 +0000 (10:44 +0200)
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.

I could swear I've done this before, maybe there was a glitch in the matrix.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47824
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
src/gallium/targets/osmesa/Makefile.am

index e187a47bc33a1573ff8f7462a73fad498700497c..38dbeb85f2572a8f8a01ad7d212c5493fc2c53f8 100644 (file)
@@ -40,10 +40,9 @@ lib@OSMESA_LIB@_la_SOURCES = target.c
 
 lib@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@OSMESA_LIB@_la_LIBADD = \