Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 2 Nov 2018 12:10:40 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: stdc-predef.h and musl-gcc

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 <<EOF
>  -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

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.