GLES and EGL that are generated from ANGLE should link with libdl because they use dlsym and dlopen. Also, initially I thought that we shouldn't link with libEGL when we use USE_ANGLE_WEBGL instead of USE_ANGLE_EGL because the symbols of EGL were found in generated libGLES. But with the new CMakeLists.txt I see that libEGL contains the right symbols and so, we can link with it in both cases.
Created attachment 431194 [details] Patch
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Created attachment 431197 [details] Patch
[Update]: I've removed EGL from the case we use WEBGL and fixed -dl to be platform specific using the CMake variable (thanks Don Olmstead!).
Comment on attachment 431197 [details] Patch Looks good; r+.
Committed r278768 (238727@main): <https://commits.webkit.org/238727@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431197 [details].
<rdar://problem/79207140>