From patchwork Sun Jun 26 15:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 1648437 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=HylQ3exI; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LWDtB6MGpz9t5m for ; Mon, 27 Jun 2022 01:14:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1F4E53856244 for ; Sun, 26 Jun 2022 15:14:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F4E53856244 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1656256475; bh=04UEAV4ACpAhkoMmxSXFnLHv52f7di9ODdVKwWmr6RM=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=HylQ3exIYaIPe0KlaChQNaV98e+Am3j/Xa4ZDml+nd2/pt6Z87EXUuhsBsntspfdW h7R5fUJ298QVrdfZkL2qB1C73ZCmZtx8ix+T4mC5j7OCViBbLzuz0wVVWR7GiAZTnJ Urk/7iuLHRXxf+LIWxO+o+aQuICr5iH8EIlJmz4g= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 73EA13858297 for ; Sun, 26 Jun 2022 15:14:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 73EA13858297 Received: by mail-wr1-x42f.google.com with SMTP id v14so9659720wra.5 for ; Sun, 26 Jun 2022 08:14:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:reply-to :mime-version:content-transfer-encoding; bh=04UEAV4ACpAhkoMmxSXFnLHv52f7di9ODdVKwWmr6RM=; b=VEtAjV/Z0M71wyVJWmRA7spth8lu9hYwfm4ouMlodhZJd2XrdRJsPU9Ps4VLOMlIzh vT8mO3F0ZsyXL38fYn/5+fdpJA59C8bQmnFlDtYq3Xo2BVEgvNMKCE13vFUQAJx1Cd94 5iMXVfk2IQbNRY8aB9mN4uTXSbkfqVM/JnjO941jUFMkZe1fuvRiZHg3fKjPExqj+ZV7 ZJFGMKDHvjm0nuYgl67SfAEUr5MPGrcaShZEYL1zyRTgEN7oKIG8kNusieR0UsvXvGGH +ImxupNkgsc2Qsj5c7fprVD2Jx1ut7qOBc9bdJubZNerc9UMdvn0NFlfw3qEmnthv0Y0 HPLw== X-Gm-Message-State: AJIora9bbBL/J5gQUVu0rEPhKABbbNvfD6DHth4/zBk1Qwu9rDE15wLe hFYxOVUne/hgZ0unrEo6VEnk/oSub7I= X-Google-Smtp-Source: AGRyM1tbuVR47PyS42PshX97ex/xRF1oLnWB1aE8J/iU+PCfkNEd6tDgA8BlUL2don1rdVmSBaeQ8w== X-Received: by 2002:a5d:6c62:0:b0:218:4257:9693 with SMTP id r2-20020a5d6c62000000b0021842579693mr8389473wrz.515.1656256449906; Sun, 26 Jun 2022 08:14:09 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id r4-20020a05600c158400b0039c457cea21sm9466907wmf.34.2022.06.26.08.14.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jun 2022 08:14:09 -0700 (PDT) X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] configure, Darwin: Correct a pasto in host-shared processing. Date: Sun, 26 Jun 2022 16:14:03 +0100 Message-Id: <20220626151403.99503-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Sandoe via Gcc-patches From: Iain Sandoe Reply-To: iain@sandoe.co.uk Cc: Iain Sandoe Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" We do, of course, mean $host not $target in this case. Corrected thus. tested on x86_64-darwin and x86_64-linux, pushed to master, thanks Iain Signed-off-by: Iain Sandoe ChangeLog: * configure: Regenerate. * configure.ac: Correct use of $host. --- configure | 4 ++-- configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f941b81af7f..dcea067759d 100644 --- a/configure.ac +++ b/configure.ac @@ -1915,7 +1915,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. @@ -1924,7 +1924,7 @@ AC_ARG_ENABLE(host-shared, fi ;; *) ;; esac], -[case $target in +[case $host in x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; *) host_shared=no ;; esac])