From c21808dd2dfa85a50d256d975ebee213ab7804ae Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 28 Oct 2022 00:08:03 +0800 Subject: meson: Fallback to 'opengl' when 'GL' is not found. This patch adds 'opengl' as a fallback to 'GL' for dependency lookup, to link with libglvnd configured without X11 support. For OpenGL, libglvnd provides two pkg-config files: `gl.pc' with GLX support while `opengl.pc' not. When building without X11 support, the former won't be installed. --- src/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/meson.build') diff --git a/src/meson.build b/src/meson.build index 5d64188f..f8e995ff 100644 --- a/src/meson.build +++ b/src/meson.build @@ -18,7 +18,7 @@ executable('Hyprland', src, xcb_dep, dependency('pixman-1'), - dependency('GL'), + dependency('GL', 'opengl'), dependency('threads') ], install : true -- cgit v1.2.3