diff --git a/subprojects/gst-plugins-base/meson.build b/subprojects/gst-plugins-base/meson.build
index 9b00253a0f..e3c3a0d920 100644
--- a/subprojects/gst-plugins-base/meson.build
+++ b/subprojects/gst-plugins-base/meson.build
@@ -316,7 +316,7 @@ else
   gtk_quartz_dep = dependency('', required : false)
 endif
 
-core_conf.set('HAVE_X11', x11_dep.found())
+core_conf.set('HAVE_X11', false)
 core_conf.set('HAVE_GIO_UNIX_2_0', giounix_dep.found())
 
 if gio_dep.type_name() == 'pkgconfig'
