mesa: enable remap table when --enable-shared-glapi
authorChia-I Wu <olv@lunarg.com>
Mon, 6 Feb 2012 09:47:48 +0000 (17:47 +0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 9 Feb 2012 15:39:50 +0000 (10:39 -0500)
As libGL will use libglapi for function lookups, we need to enable the remap
table.

Tested-by: Brian Paul <brianp@vmware.com>
Tested-by: Matt Turner <mattst88@gmail.com>
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=45660
configure.ac

index b2b1ab8f41a131089b84325fef962f7d4d79bb8d..846b62300a77ac2deb80e32b2b2c8052f3695a42 100644 (file)
@@ -698,6 +698,9 @@ AC_ARG_ENABLE([shared-glapi],
 SHARED_GLAPI="0"
 if test "x$enable_shared_glapi" = xyes; then
     SHARED_GLAPI="1"
+    # libGL will use libglapi for function lookups (IN_DRI_DRIVER means to use
+    # the remap table)
+    DEFINES="$DEFINES -DIN_DRI_DRIVER"
 fi
 AC_SUBST([SHARED_GLAPI])