[Mesa-dev] [PATCH 04/11] configure: allow building shared-glapi powered libgl-xlib

Emil Velikov emil.l.velikov at gmail.com
Fri Jun 19 12:56:49 PDT 2015


XXX: With this one done, we can finally transition with enforcing
shared-glapi, and

 - link the dri modules against libglapi.so, add --no-undefined to the
LDFLAGS
 - drop the dlopen(libglapi.so/libGL.so, RTLD_GLOBAL) workarounds
in the loaders - libGL, libEGL and libgbm.
 - start killing off/cleaning up the dispatch ?

The caveats:
1) up-to what stage do we care about static libraries
 - libgl (either dri or xlib based)
 - osmesa
 - libEGL

2) how about other platforms (scons) ?
 - currently the scons uses static glapi,
 - would we need the dlopen(...) on windows ?

Cc: Brian Paul <brianp at vmware.com>
Cc: Jose Fonseca <jfonseca at vmware.com>
Cc: Adam Jackson <ajax at redhat.com>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 configure.ac | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5161361..677fb5b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -941,12 +941,6 @@ x*yes*yes*)
     ;;
 esac
 
-# Building Xlib-GLX requires shared glapi to be disabled.
-if test "x$enable_shared_glapi$enable_xlib_glx" = xyesyes; then
-    AC_MSG_NOTICE([Shared GLAPI should not used with Xlib-GLX, disabling])
-    enable_shared_glapi=no
-fi
-
 AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes)
 
 # Build the pipe-drivers as separate libraries/modules.
-- 
2.4.2



More information about the mesa-dev mailing list