--- a/modules/audio_output/Makefile.am
+++ b/modules/audio_output/Makefile.am
@@ -8,7 +8,7 @@
 	video_output/android/utils.c video_output/android/utils.h
 libandroid_audiotrack_plugin_la_CFLAGS = $(AM_CFLAGS)
 
-if HAVE_ANDROID
+if HAVE_ANDROID_NO_TERMUX
 aout_LTLIBRARIES += libandroid_audiotrack_plugin.la libopensles_android_plugin.la
 endif
 
