diff --git a/meson.build b/meson.build index dc47214331d..6181c1439ed 100644 --- a/meson.build +++ b/meson.build @@ -2069,6 +2069,9 @@ if with_platform_x11 if with_xlib_lease dep_xlib_xrandr = dependency('xrandr', version : '>= 1.3') endif +elif with_gallium_rusticl + # needed for GL sharing extension + dep_x11 = dependency('x11') endif if with_dri diff --git a/src/gallium/frontends/rusticl/meson.build b/src/gallium/frontends/rusticl/meson.build index f6c28da414e..ee9d8c3fcd6 100644 --- a/src/gallium/frontends/rusticl/meson.build +++ b/src/gallium/frontends/rusticl/meson.build @@ -154,6 +154,9 @@ rusticl_opencl_bindings_rs = rust.bindgen( include_directories : [ inc_include, ], + dependencies : [ + dep_x11, + ], c_args : [ rusticl_bindgen_c_args, cl_c_args,