diff options
author | doko <doko@ubuntu.com> | 2016-09-01 22:05:20 +0200 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2016-09-01 22:05:20 +0200 |
commit | b0d0b8118fdb895d314f8bd079a781225b194aa4 (patch) | |
tree | f6ab47845f2f3f76bbb6d8a390c7471bac9b3659 /configure.ac | |
parent | 20cdc41087e307365de85267a14a756a38dec1cb (diff) | |
download | cpython-b0d0b8118fdb895d314f8bd079a781225b194aa4.tar.gz |
- Issue #27917: Set platform triplets for Android builds.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f68069dd4f..56fd29cdb9 100644 --- a/configure.ac +++ b/configure.ac @@ -768,7 +768,31 @@ cat >> conftest.c <<EOF #undef powerpc #undef sparc #undef unix -#if defined(__linux__) +#if defined(__ANDROID__) +# if defined(__x86_64__) && defined(__LP64__) + x86_64-linux-android +# elif defined(__i386__) + i686-linux-android +# elif defined(__aarch64__) && defined(__AARCH64EL__) +# if defined(__ILP32__) + aarch64_ilp32-linux-android +# else + aarch64-linux-android +# endif +# elif defined(__ARM_EABI__) && defined(__ARMEL__) + arm-linux-androideabi +# elif defined(__mips_hard_float) && defined(_MIPSEL) +# if _MIPS_SIM == _ABIO32 + mipsel-linux-android +# elif _MIPS_SIM == _ABI64 + mips64el-linux-android +# else +# error unknown platform triplet +# endif +# else +# error unknown platform triplet +# endif +#elif defined(__linux__) # if defined(__x86_64__) && defined(__LP64__) x86_64-linux-gnu # elif defined(__x86_64__) && defined(__ILP32__) |