diff --git a/meson.build b/meson.build index e0228d1..d0eb985 100644 --- a/meson.build +++ b/meson.build @@ -164,6 +164,9 @@ endif # Dependencies dl_dep = cc.find_library('dl', required: false) gl_dep = dependency('gl', required: false) +if not gl_dep.found() and not build_glx + gl_dep = dependency('opengl', required: false) +endif egl_dep = dependency('egl', required: false) # Optional dependencies for tests diff --git a/src/meson.build b/src/meson.build index 37e28f0..11c4b54 100644 --- a/src/meson.build +++ b/src/meson.build @@ -93,7 +93,7 @@ libepoxy_dep = declare_dependency( # pkg-config file, for consumers of Epoxy gl_reqs = [] if gl_dep.found() and gl_dep.type_name() == 'pkgconfig' - gl_reqs += 'gl' + gl_reqs += gl_dep.name() endif if build_egl and egl_dep.found() and egl_dep.type_name() == 'pkgconfig' gl_reqs += 'egl'