--- a/modules/video_output/Makefile.am
+++ b/modules/video_output/Makefile.am
@@ -389,7 +389,7 @@
 	video_output/opengl/converter.h
 libglconv_android_plugin_la_CFLAGS = $(AM_CFLAGS) -DUSE_OPENGL_ES2
 
-if HAVE_ANDROID
+if HAVE_ANDROID_NO_TERMUX
 vout_LTLIBRARIES += libandroid_window_plugin.la libandroid_display_plugin.la
 if HAVE_EGL
 vout_LTLIBRARIES += libegl_android_plugin.la libglconv_android_plugin.la
