From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050::465:201]) by sourceware.org (Postfix) with ESMTPS id EADE63858D39 for ; Tue, 5 Oct 2021 08:02:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EADE63858D39 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (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-201.mailbox.org (Postfix) with ESMTPS id 4HNqmr55rnzQkj1; Tue, 5 Oct 2021 10:02:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Date: Tue, 5 Oct 2021 10:02:01 +0200 (CEST) From: ibuclaw@gdcproject.org To: Iain Sandoe Cc: gcc-patches@gcc.gnu.org Message-ID: <799417153.11045.1633420921355@office.mailbox.org> In-Reply-To: References: <20211004160046.566990-1-ibuclaw@gdcproject.org> Subject: Re: [committed] d: gdc driver ignores -static-libstdc++ when automatically linking libstdc++ library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 8E319183E X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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-List-Received-Date: Tue, 05 Oct 2021 08:02:09 -0000 > On 04/10/2021 18:48 Iain Sandoe wrote: >=20 > For targets that don=E2=80=99t support HAVE_LD_STATIC_DYNAMIC it would be= useful > to push the option back out, so that they can use that to substitute a st= atic version > of the library using %:replace-outfile(-lxxxxx libxxxxx+.a%s) [ see darwi= n.h for=20 > examples. ] .. I suppose we could figure out a follow-on patch and test t= hat on > Darwin? >=20 > so > #else > =E2=80=A6 code to push the -libstdc++ out >=20 > (yes, we do have this problem also with the g++ driver=E2=80=A6 I posted = a patch eons > ago .. but suspect it was never applied) >=20 Sure, seems reasonable to me, will follow up. I had a look at darwin.h, and it occurs to me that you probably will be wan= ting -static-libphobos added there as well, which means moving that option = to common.opt. Iain.