From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17798 invoked from network); 24 May 2023 13:32:49 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 24 May 2023 13:32:49 -0000 Received: (qmail 21557 invoked by uid 550); 24 May 2023 13:32:46 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 21521 invoked from network); 24 May 2023 13:32:45 -0000 Date: Wed, 24 May 2023 09:32:33 -0400 From: Rich Felker To: Jens Gustedt Cc: musl@lists.openwall.com Message-ID: <20230524133233.GT4163@brightrain.aerifal.cx> References: <1c2e4eb5294288921677b2b661b77ef38a6cdbd0.1684922612.git.Jens.Gustedt@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1c2e4eb5294288921677b2b661b77ef38a6cdbd0.1684922612.git.Jens.Gustedt@inria.fr> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] [C23 implied 2/2] clang: only exclude C library includes, but allow compiler specific headers On Mon, Apr 17, 2023 at 09:30:53PM +0200, Jens Gustedt wrote: > --- > tools/musl-clang.in | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/musl-clang.in b/tools/musl-clang.in > index 623de6f6..00189322 100644 > --- a/tools/musl-clang.in > +++ b/tools/musl-clang.in > @@ -24,7 +24,7 @@ exec $cc \ > -B"$thisdir" \ > -fuse-ld=musl-clang \ > -static-libgcc \ > - -nostdinc \ > + -nostdlibinc \ > --sysroot "$libc" \ > -isystem "$libc_inc" \ > -L-user-start \ > -- > 2.34.1 It's not clear to me whether this works on all versions, but more importantly, it's not clear whether it blocks the compiler header path from being searched before the libc header path, which is necessary so incompatible compiler-provided stdc headers don't get used. Rich