From 8d9c2044a4f27b71ad854881771128bfcb2a6955 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 15 Nov 2018 18:07:33 +0000 Subject: [PATCH] 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 Signed-off-by: Eric Engestrom Acked-by: Kyle Brenneman --- 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 #include #include -- 2.30.2