From: Eric Engestrom Date: Thu, 11 Oct 2018 17:38:52 +0000 (+0100) Subject: egl: add glvnd symbols check X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=c78d2d98409200f0b40d2e7bb7d143afbf1f0895;hp=ba18b968e8745119f66f293a9366c6708c4ed3b8 egl: add glvnd symbols check According to the spec [1], `__egl_Main` is the only symbol that needs to be exported. We don't want applications directly linking against libEGL_mesa.so (apps should always go through libEGL.so, regardless of who is providing it), so we shouldn't export any other symbols either. [1] https://github.com/NVIDIA/libglvnd/blob/master/include/glvnd/libeglabi.h (this header is the closest there is to a spec) Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/src/egl/egl-glvnd-symbols.txt b/src/egl/egl-glvnd-symbols.txt new file mode 100644 index 00000000000..40d931edcf9 --- /dev/null +++ b/src/egl/egl-glvnd-symbols.txt @@ -0,0 +1 @@ +__egl_Main diff --git a/src/egl/meson.build b/src/egl/meson.build index 019f79ee212..d864c099efa 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -194,7 +194,7 @@ pkg.generate( if with_tests and prog_nm.found() if with_glvnd - # TODO: add glvnd symbol check + egl_symbols = files('egl-glvnd-symbols.txt') else egl_symbols = files('egl-symbols.txt') endif