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 <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White 2021-01-29 21:44:45 +00:00 committed by Commit Bot service account
parent fc441f97fc
commit 30959dd4d2
1 changed files with 6 additions and 1 deletions

View File

@ -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\"",
]
}
}