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