From 30959dd4d26ad9a1bda22552eb49b9dc28461cb6 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Fri, 29 Jan 2021 21:44:45 +0000 Subject: [PATCH] Fix libEGL.so.1 issue with ANGLE build. On Linux, ANGLE only builds a libEGL.so, while GLFW expects to find libEGL.so.1. The fix is to force GLFW to load libEGL.so instead. Bug: dawn:447 Change-Id: I4baa5b175a093b5b5d7a5c121085db3006c0e097 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/39561 Reviewed-by: Corentin Wallez Reviewed-by: Austin Eng Commit-Queue: Stephen White --- third_party/gn/glfw/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/third_party/gn/glfw/BUILD.gn b/third_party/gn/glfw/BUILD.gn index ba2336fbd6..b592b4d2c4 100644 --- a/third_party/gn/glfw/BUILD.gn +++ b/third_party/gn/glfw/BUILD.gn @@ -35,7 +35,12 @@ config("glfw_public") { } if (is_linux) { - defines = [ "_GLFW_X11" ] + # ANGLE builds only libEGL.so, so tell GLFW to load that instead of + # the default libEGL.so.1. + defines = [ + "_GLFW_X11", + "_GLFW_EGL_LIBRARY=\"libEGL.so\"", + ] } }