From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 5E4C93858436 for ; Thu, 28 Oct 2021 16:41:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5E4C93858436 Received: by mail-wr1-x430.google.com with SMTP id v17so11251704wrv.9 for ; Thu, 28 Oct 2021 09:41:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=4U2XIvFnpLaJpeAWJ3UbnddZE5QFMobZovucphtsr5o=; b=exF1fRLJuvZhXpfMlIF2JEtbJ0P2K10ciLQBvp/ye8pEzn7IU6sD1aP9t4yExcQGOo BhuE8Un+zkU4mwNgtDUraikJilcmgjYfi3/gXWp9tQABTQsDi/JyN25zkA27zBT4KbOn 0irKgz44Evd7ybRwQP1Trmqh33i954XUTrYixAXSO/9i5UW7WWhQWHFAZjDRV0xbBEmN gdqeAcgjqsoC4Gy+u9jV+opOpB63xCkD/wLSdBTVJhg4Txi3Tu/kUVglSZ7820z3prdZ M5YoNnu/qgKUWR85wcCpYhgVAQ2Q6xWOoy4UyoyrWy94FSAASgj+IPDe4pgE5SXChuFd RwFg== X-Gm-Message-State: AOAM5307Cf+j5BodRpHCmLdl6BrM9TaHyAu/KuQPe9fyXGL1xdL34lZJ mfN3Ko/Zr40SIuGXzAI+FTF+gLLrnKx2Lg== X-Google-Smtp-Source: ABdhPJzR3+ltTUn89xlEhf6kuBw3BHJhLTQgs6ojZEx/9ukhuxYrR6PanacJwgLNfcMSEIcmSK/3Yg== X-Received: by 2002:adf:dc90:: with SMTP id r16mr7378238wrj.345.1635439274495; Thu, 28 Oct 2021 09:41:14 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:9748:b7d4:9e30:95e? ([2001:8b0:aba:5f3c:9748:b7d4:9e30:95e]) by smtp.gmail.com with ESMTPSA id e18sm2024832wrs.48.2021.10.28.09.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 09:41:14 -0700 (PDT) Message-ID: <2096639a56bcfade0e72f86fd3b3c80bf4f327af.camel@linuxfoundation.org> Subject: Re: [PATCH 3/5] gcc: Add --nostdlib++ option From: Richard Purdie To: Bernhard Reutner-Fischer , Richard Purdie via Gcc-patches Date: Thu, 28 Oct 2021 17:41:13 +0100 In-Reply-To: <20211027225607.6829e174@nbbrfq> References: <20211027200505.3340725-1-richard.purdie@linuxfoundation.org> <20211027200505.3340725-4-richard.purdie@linuxfoundation.org> <20211027225607.6829e174@nbbrfq> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, 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: Thu, 28 Oct 2021 16:41:17 -0000 On Wed, 2021-10-27 at 22:56 +0200, Bernhard Reutner-Fischer wrote: > On Wed, 27 Oct 2021 21:05:03 +0100 > Richard Purdie via Gcc-patches wrote: > > > OpenEmbedded/Yocto Project builds libgcc and the other gcc runtime libraries > > separately from the compiler and slightly differently to the standard gcc build. > > > > In general this works well but in trying to build them separately we run into > > an issue since we're using our gcc, not xgcc and there is no way to tell configure > > to use libgcc but not look for libstdc++. > > > > This adds such an option allowing such configurations to work. > > But shouldn't it be called --nostdlibc++ then? Maybe :). There are already --nostdinc++ and nostdlib options so --nostdlib++ matches those but I'm happy to use --nostdlibc++ if that is preferred. Cheers, Richard