From 9e1ff20f76e45e4b0a01bdcd65fb2510cb06ba1b Mon Sep 17 00:00:00 2001 From: Aliaksei Semianiuk Date: Thu, 25 Dec 2025 02:05:13 +0500 Subject: [PATCH] Add a specific case for Linux targets to convert the GNU triplet format --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) 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" ;;