0

我使用自动工具为多个平台构建了我的库。其中一个平台是 termux 环境中的 android。我想有条件地添加带有 -llog 链接器选项的 android 日志库(使用 __android_log_write NDK 函数调试应用程序)。

我目前找不到确定构建是否适用于 Android 的方法,因为 termux 返回“linux”作为目标操作系统。

有没有办法检查configure.ac中的构建环境是“android”还是“termux”?

4

0 回答 0