diff --git a/gst-libs/gst/gl/meson.build b/gst-libs/gst/gl/meson.build index 05e9498d59..4b6a5f0c06 100644 --- a/gst-libs/gst/gl/meson.build +++ b/gst-libs/gst/gl/meson.build @@ -268,7 +268,9 @@ gl_include_header = ''' gl_dep = unneeded_dep glx_dep = unneeded_dep if need_api_opengl != 'no' or need_platform_glx != 'no' - gl_dep = dependency('gl', required : false) + # override meson's braindead gl detection on osx/windows/etc by forcing pkg-config + gl_dep = dependency('gl', method: 'pkg-config', required : false) + if not gl_dep.found() if host_machine.system() == 'windows' gl_dep = cc.find_library('opengl32', required : false)