diff --git a/configure b/configure index 5b09de36f9a0b8..d9af18c1b19c27 100755 --- a/configure +++ b/configure @@ -16119,6 +16119,9 @@ else esac CARGO_TARGET="${cargo_host%%-apple-darwin*}-apple-darwin" ;; + *-linux-android*) + CARGO_TARGET=$(echo "$host" | sed 's/^\([^-]*\)-[^-]*-linux-android/\1-linux-android/') + ;; *-pc-linux-*) CARGO_TARGET=$(echo "$host" | sed 's/-pc-linux-/-unknown-linux-/') ;; diff --git a/configure.ac b/configure.ac index 1561c6f9b2e99f..c157fca3ca5b1f 100644 --- a/configure.ac +++ b/configure.ac @@ -4342,6 +4342,9 @@ else esac CARGO_TARGET="${cargo_host%%-apple-darwin*}-apple-darwin" ;; + *-linux-android*) + CARGO_TARGET=$(echo "$host" | sed 's/^\([^-]*\)-[^-]*-linux-android/\1-linux-android/') + ;; *-pc-linux-*) CARGO_TARGET=$(echo "$host" | sed 's/-pc-linux-/-unknown-linux-/') ;;