diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build
index e848daf0d..7d33481c1 100644
--- a/hw/xwayland/meson.build
+++ b/hw/xwayland/meson.build
@@ -132,6 +132,9 @@ xwayland_server = executable(
         libxserver_glx,
         libglxvnd,
     ],
+    link_args: [
+      '-landroid-shmem'
+    ],
     install: true,
     install_dir: xwayland_path
 )
