mailing list of musl libc
 help / color / mirror / code / Atom feed
* stdc-predef.h and musl-gcc
@ 2018-10-29 19:20 Jens Gustedt
  2018-11-02 16:10 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Gustedt @ 2018-10-29 19:20 UTC (permalink / raw)
  To: musl


[-- Attachment #1.1: Type: text/plain, Size: 493 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: predef.patch --]
[-- Type: text/x-patch, Size: 444 bytes --]

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

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: stdc-predef.h and musl-gcc
  2018-10-29 19:20 stdc-predef.h and musl-gcc Jens Gustedt
@ 2018-11-02 16:10 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2018-11-02 16:10 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-02 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29 19:20 stdc-predef.h and musl-gcc Jens Gustedt
2018-11-02 16:10 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).