From 61d8d5e12ba2f1c013cb2f10353690fbeec1f084 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 24 Apr 2025 21:39:09 +0300 Subject: [PATCH] wscript: detect if we're compiling from Termux --- wscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wscript b/wscript index 53992ca2..db6a0047 100644 --- a/wscript +++ b/wscript @@ -454,6 +454,11 @@ def configure(conf): conf.check_cc(lib='vrtld') conf.check_cc(lib='m') elif conf.env.DEST_OS == 'android': + # maybe there is some better check? + if conf.find_program('termux-info', mandatory=False): + conf.env.TERMUX = True + conf.define('__TERMUX__', 1) + conf.check_cc(lib='dl') conf.check_cc(lib='log') if not conf.options.ANDROID_OPTS: