1--- third_party/angle/BUILD.gn.orig 2022-09-01 05:13:41 UTC 2+++ third_party/angle/BUILD.gn 3@@ -247,7 +247,6 @@ config("extra_warnings") { 4 "-Wtautological-type-limit-compare", 5 "-Wundefined-reinterpret-cast", 6 "-Wunneeded-internal-declaration", 7- "-Wunused-but-set-variable", 8 "-Wsuggest-destructor-override", 9 "-Wsuggest-override", 10 11@@ -425,7 +424,7 @@ angle_static_library("angle_common") { 12 all_dependent_configs = [ ":angle_disable_pool_alloc" ] 13 } 14 15- if (is_linux || is_chromeos) { 16+ if ((is_linux || is_chromeos) && !is_bsd) { 17 libs = [ "dl" ] 18 } 19 20@@ -551,6 +550,9 @@ angle_static_library("angle_gpu_info_util") { 21 "Xi", 22 "Xext", 23 ] 24+ if (is_bsd) { 25+ libs += [ "GL" ] 26+ } 27 } 28 29 if (angle_use_wayland && angle_has_build) { 30@@ -1068,12 +1070,12 @@ if (angle_use_wayland) { 31 "wayland-client", 32 "wayland-egl", 33 ] 34+ } else { 35+ include_dirs = [ 36+ "$wayland_dir/egl", 37+ "$wayland_dir/src", 38+ ] 39 } 40- 41- include_dirs = [ 42- "$wayland_dir/egl", 43- "$wayland_dir/src", 44- ] 45 } 46 47 group("angle_wayland") { 48