Mesa (master): egl: hide entrypoints that shouldn't be exported when using glvnd

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 29 16:54:49 UTC 2019


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

Author: Eric Engestrom <eric.engestrom at intel.com>
Date:   Thu Nov 15 18:07:33 2018 +0000

egl: hide entrypoints that shouldn't be exported when using glvnd

>From GLVND author:
> From a functional standpoint, exporting additional symbols doesn't
> really matter, since libglvnd will load the vendor libraries with
> RTLD_LOCAL.

Suggested-by: Kyle Brenneman <kbrenneman at nvidia.com>
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Acked-by: Kyle Brenneman <kbrenneman at nvidia.com>

---

 src/egl/main/eglapi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index f99078febb3..588c6a5f1eb 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -83,6 +83,12 @@
  */
 
 
+#ifdef USE_LIBGLVND
+#define EGLAPI
+#undef PUBLIC
+#define PUBLIC
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>




More information about the mesa-commit mailing list