From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13392 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: stdc-predef.h and musl-gcc Date: Fri, 2 Nov 2018 12:10:40 -0400 Message-ID: <20181102161040.GK5150@brightrain.aerifal.cx> References: <20181029202045.13acb5ab@inria.fr> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1541174929 8229 195.159.176.226 (2 Nov 2018 16:08:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Nov 2018 16:08:49 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-13408-gllmg-musl=m.gmane.org@lists.openwall.com Fri Nov 02 17:08:45 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1gIc03-00020a-QY for gllmg-musl@m.gmane.org; Fri, 02 Nov 2018 17:08:43 +0100 Original-Received: (qmail 30450 invoked by uid 550); 2 Nov 2018 16:10:52 -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 30421 invoked from network); 2 Nov 2018 16:10:52 -0000 Content-Disposition: inline In-Reply-To: <20181029202045.13acb5ab@inria.fr> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:13392 Archived-At: On Mon, Oct 29, 2018 at 08:20:45PM +0100, Jens Gustedt wrote: > Hi, > when used with the musl-gcc interface, we are missing some of the > standard macros. A simple add to the spec file for preloading > stdc-predef.h solves the problem for me. > Thanks > Jens > > -- > :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: > :: ::::::::::::::: office Strasbourg : +33 368854536 :: > :: :::::::::::::::::::::: gsm France : +33 651400183 :: > :: ::::::::::::::: gsm international : +49 15737185122 :: > :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt :: > diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh > index 30492574..69bb1ff4 100644 > --- a/tools/musl-gcc.specs.sh > +++ b/tools/musl-gcc.specs.sh > @@ -8,7 +8,7 @@ cat < -nostdinc -isystem $incdir -isystem include%s %(old_cpp_options) > > *cc1: > -%(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s > +%(cc1_cpu) -nostdinc -isystem $incdir -imacros stdc-predef.h -isystem include%s > > *link_libgcc: > -L$libdir -L .%s Hmm, I suppose -nostdinc is what's suppressing it from happening by default? Is there a reason for the two spaces above? Rich