mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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 <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
ba18b968e8
commit
c78d2d9840
2 changed files with 2 additions and 1 deletions
1
src/egl/egl-glvnd-symbols.txt
Normal file
1
src/egl/egl-glvnd-symbols.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
__egl_Main
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue