Discussion:
[musl] stdc-predef.h and musl-gcc
Jens Gustedt
2018-10-29 19:20:45 UTC
Permalink
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 ::
Rich Felker
2018-11-02 16:10:40 UTC
Permalink
Post by Jens Gustedt
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
--
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_cpu) -nostdinc -isystem $incdir -isystem include%s
+%(cc1_cpu) -nostdinc -isystem $incdir -imacros stdc-predef.h -isystem include%s
-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

Loading...