Message ID | 20230807111029.2320238-22-arsen@aarsen.me |
---|---|
State | Unresolved |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1388687vqr; Mon, 7 Aug 2023 04:47:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1jNgcEg91+8GcNDFjAdtrLBPMeCdBo0r5JyL0OoB23VVJwj+mAZgVk5hPAx1mP2nrto0l X-Received: by 2002:a05:6512:313b:b0:4fe:28f6:d542 with SMTP id p27-20020a056512313b00b004fe28f6d542mr5261683lfd.13.1691408870779; Mon, 07 Aug 2023 04:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691408870; cv=none; d=google.com; s=arc-20160816; b=mhvbAcgbW6ATSqftMZSuIonQPiGTYYcOrlubWjSwAupHOJYevxcfhdhrcMTL4auazH nXsZlB9k8VXBb4vFa3LYe6P4vjiYUWM4gBIhc/7vbOX0JTv09FIIsK5cr7rrjcn7Uki2 VgXe2ybLopty3hQlx9J7Q/Z7zuGi8Iz5QdIaq0VM6AK+yxa2EeIY8DbyaydeBA30619Y tGLc67zvFdfgAy5sHb1wjCNpPhNWtetB0Fjc6Ur416R7gCTLwf6HNkHUQVegwqBORrf4 5m6Ns69Gl3x/xcusPZ/m2uSlAHdDkC8fn0eVHnw4lv2RCCspx5Xoiq3iLmnXa5kex6eS /AlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=Z4itcn4+BIJWAe5YUaxDYW6wImA3Y28cKi5Kpu1SK4A=; fh=5m/Ou5nb9mSX4jgWjeSrLy5XL/K/fwRPXiU1Ypr6h+w=; b=wMTRPsjjFI2FxZLMy4F80SpJAv23O8r07E5HzYkN4PnOfOBTckxKvHEmN2RVenISG2 9Tuv1rPnO0DrR9LFRShBb+/yT6Vb5eGhBgOZ9R0NFX3Nvk1/8/PSHpW/3BeFHds+E4Nt dJNHDiDyx0hfPATWNlE9DFykskW6TXzd1Duzy0r7w8EXhKl9CE88m+3Ze9el0Se00TnH TnZMgqSfcBIxSc1kT+/B73y6Kah/lL8Q+scs2l2z8zJHKTjDTZyCQyVQjKmdFzeomcXK J395LqVuK/IoZ/L6y7feVLWmHQ4F14Bu5T+AtA4AMuQcSGarbstMnEO101iDiB9vWVP5 ZEdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=sqvNek4E; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d21-20020aa7d5d5000000b005233490a56bsi2296741eds.70.2023.08.07.04.47.50 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 04:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=sqvNek4E; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A190D3831EF9 for <ouuuleilei@gmail.com>; Mon, 7 Aug 2023 11:29:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A190D3831EF9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691407764; bh=Z4itcn4+BIJWAe5YUaxDYW6wImA3Y28cKi5Kpu1SK4A=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=sqvNek4Efzinaa/9dJG2koLcd+QeFmSVImcF6O4Hg2GaaLJLLo/Q6nPTI3CZ39QhP nAIfqeD9xtwXdF3PAfHZCvOawbLMDm9U+c1S819EXWMHlKJXflINdyEduHYgcL52mt 5uTwUIaKp0guCge5/TdfKMpa7GH+M4cBR+O7yzRk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by sourceware.org (Postfix) with ESMTPS id CB230385773A; Mon, 7 Aug 2023 11:19:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CB230385773A Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4RKDP12D1nz9sS4; Mon, 7 Aug 2023 13:19:33 +0200 (CEST) To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Iain Sandoe <iain@sandoe.co.uk> Subject: [PATCH 21/45] configure: Allow host fragments to react to --enable-host-shared. Date: Mon, 7 Aug 2023 13:07:24 +0200 Message-ID: <20230807111029.2320238-22-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4RKDP12D1nz9sS4 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Binutils?= <binutils@sourceware.org> Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= <arsen@aarsen.me> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773570748010138141 X-GMAIL-MSGID: 1773570748010138141 |
Series |
Synchronize shared build infrastructure with GCC tree
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | warning | Git am fail log |
Commit Message
Arsen Arsenović
Aug. 7, 2023, 11:07 a.m. UTC
From: Iain Sandoe <iain@sandoe.co.uk> This makes the host_shared value available to host makefile fragments. It uses this to adjust Darwin's mdynamic-no-pic in the case that shared host resources are required. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> config/ChangeLog: * mh-darwin: Require a non-shared host configuration to enable mdynamic-no-pic where that is supported. --- config/mh-darwin | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/config/mh-darwin b/config/mh-darwin index fb2bb5ad1d9..b72835ae953 100644 --- a/config/mh-darwin +++ b/config/mh-darwin @@ -11,9 +11,15 @@ # non-bootstrapped compiler), later stages will be built by GCC which supports # the required flags. +# We cannot use mdynamic-no-pic when building shared host resources. + +ifeq (${host_shared},no) BOOTSTRAP_TOOL_CAN_USE_MDYNAMIC_NO_PIC := $(shell \ $(CC) -S -xc /dev/null -o /dev/null -Werror -mno-dynamic-no-pic 2>/dev/null \ && echo true) +else +BOOTSTRAP_TOOL_CAN_USE_MDYNAMIC_NO_PIC := false +endif @if gcc-bootstrap ifeq (${BOOTSTRAP_TOOL_CAN_USE_MDYNAMIC_NO_PIC},true) @@ -21,8 +27,10 @@ STAGE1_CFLAGS += -mdynamic-no-pic else STAGE1_CFLAGS += -fPIC endif +ifeq (${host_shared},no) # Add -mdynamic-no-pic to later stages when we know it is built with GCC. BOOT_CFLAGS += -mdynamic-no-pic +endif @endif gcc-bootstrap @unless gcc-bootstrap