From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10307 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 1/1] Use compiler includes for musl-clang, like musl-gcc Date: Wed, 6 Jul 2016 13:44:03 -0400 Message-ID: <20160706174403.GB15995@brightrain.aerifal.cx> References: <1467825725-11116-1-git-send-email-aidanhs@cantab.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1467827067 9454 80.91.229.3 (6 Jul 2016 17:44:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 17:44:27 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10320-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 06 19:44:27 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bKqs3-0007pP-8C for gllmg-musl@m.gmane.org; Wed, 06 Jul 2016 19:44:23 +0200 Original-Received: (qmail 11817 invoked by uid 550); 6 Jul 2016 17:44:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11782 invoked from network); 6 Jul 2016 17:44:16 -0000 Content-Disposition: inline In-Reply-To: <1467825725-11116-1-git-send-email-aidanhs@cantab.net> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10307 Archived-At: On Wed, Jul 06, 2016 at 06:22:05PM +0100, Aidan Hobson Sayers wrote: > #include > int main() {} > > The above currently compiles with musl-gcc but not with musl-clang. This > patch fixes the latter. > > --- > 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 623de6f..0018932 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 \ > -- What happens when you #include after making this change? Do you get the compiler-provided one or musl's? You should be able to tell by running musl-clang -E foo.c Rich