Link to the OpenGL library to fix the host_debug_unopt build (#2841)

diff --git a/sky/shell/BUILD.gn b/sky/shell/BUILD.gn
index 88b7b91..f0753f1 100644
--- a/sky/shell/BUILD.gn
+++ b/sky/shell/BUILD.gn
@@ -402,6 +402,10 @@
       ":testing",
     ]
 
+    ldflags = [
+      "-lGL",
+    ]
+
     if (use_glfw) {
       sources += [
         "//sky/shell/platform/glfw/init_glfw.cc",
diff --git a/sky/shell/platform/mojo/BUILD.gn b/sky/shell/platform/mojo/BUILD.gn
index d232408..2204008 100644
--- a/sky/shell/platform/mojo/BUILD.gn
+++ b/sky/shell/platform/mojo/BUILD.gn
@@ -47,4 +47,8 @@
     "//sky/shell:gpu_mojo",
     "//third_party/icu",
   ]
+
+  ldflags = [
+    "-lGL",
+  ]
 }