From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id A093A3858CDA; Mon, 22 Apr 2024 18:45:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A093A3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713811553; bh=1aSzXryVhapymNNlXNkGczpRnzCYJ/wYq1k8mH9AE5Y=; h=From:To:Subject:Date:From; b=ef/P0yNjkOEWLO18vmuw1dxH4zRiPO6s3tkyzw9UMD1v6bOv3+Mz9t4SOo9qoU6xD 0imd87b8iYmFQKyI5gFZw6J3e744POdECg0QocH/sggN9jXEUMle2O59AK8TWTbfsW OqHfnaBx7BA4KvCzLsBAamQ88HEUvsLooJ5VVStA= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-10381] configure, Darwin: Correct a pasto in host-shared processing. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 89509737a67530d48ed18c15f1fc1e33d7d8c663 X-Git-Newrev: f6b8bd94ff853ac321c72cc80968d8386023b7e5 Message-Id: <20240422184553.A093A3858CDA@sourceware.org> Date: Mon, 22 Apr 2024 18:45:53 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f6b8bd94ff853ac321c72cc80968d8386023b7e5 commit r12-10381-gf6b8bd94ff853ac321c72cc80968d8386023b7e5 Author: Iain Sandoe Date: Sun Jun 26 09:24:28 2022 +0100 configure, Darwin: Correct a pasto in host-shared processing. We do, of course, mean $host not $target in this case. Corrected thus. Signed-off-by: Iain Sandoe ChangeLog: * configure: Regenerate. * configure.ac: Correct use of $host. (cherry picked from commit 1edfc8f2d3307a3ffa077a605f432832d7715462) Diff: --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5dcaab14ae9..77638bc84a6 100755 --- a/configure +++ b/configure @@ -8646,7 +8646,7 @@ fi # Check whether --enable-host-shared was given. if test "${enable_host_shared+set}" = set; then : enableval=$enable_host_shared; host_shared=$enableval - case $target in + case $host in x86_64-*-darwin* | aarch64-*-darwin*) if test x$host_shared != xyes ; then # PIC is the default, and actually cannot be switched off. diff --git a/configure.ac b/configure.ac index 85977482aee..7abd02f8b56 100644 --- a/configure.ac +++ b/configure.ac @@ -1918,7 +1918,7 @@ AC_ARG_ENABLE(host-shared, [AS_HELP_STRING([--enable-host-shared], [build host code as shared libraries])], [host_shared=$enableval - case $target in + case $host in x86_64-*-darwin* | aarch64-*-darwin*) if test x$host_shared != xyes ; then # PIC is the default, and actually cannot be switched off.