|
Message-ID: <20230524133233.GT4163@brightrain.aerifal.cx> Date: Wed, 24 May 2023 09:32:33 -0400 From: Rich Felker <dalias@...c.org> To: Jens Gustedt <Jens.Gustedt@...ia.fr> Cc: musl@...ts.openwall.com Subject: Re: [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
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.