summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-05-11 07:57:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-05-11 07:57:48 -0700
commit823de0fec90d40a62a573efaac074fbc72293bdd (patch)
treef82fd82a54c24d762351649494c33b17f73d7ef5
parent358ed61b023006bff29d09611bda9a57f26ca5ab (diff)
downloadtxr-823de0fec90d40a62a573efaac074fbc72293bdd.tar.gz
txr-823de0fec90d40a62a573efaac074fbc72293bdd.tar.bz2
txr-823de0fec90d40a62a573efaac074fbc72293bdd.zip
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.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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"