From a084a3a21f6cfece7df00ed26a88795e250cd2f9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 11 May 2023 07:57:48 -0700 Subject: android: configure SDK level via clang --target. * configure: don't set __ANDROID_API__, but instead use --target to specify a target architecture. Some of the version checking is now done using symbol attributes; the preprocessor symbol alone doesn't tell the compiler what SDK version is being targeted. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 9b835e4e..c7162214 100755 --- a/configure +++ b/configure @@ -1273,7 +1273,7 @@ if ! [ $darwin_target ] ; then if [ "$($make conftest.android)" = "yes" ] ; then printf "yes\n" android_target=y - lang_flags="$lang_flags -U__ANDROID_API__ -D__ANDROID_API__=65535 -D_BSD_SOURCE" + lang_flags="$lang_flags --target=aarch64-unknown-linux-android26 -D_BSD_SOURCE" printf "Regenerating config.make ..." gen_config_make printf "done\n" -- cgit v1.2.3