make gcc-specific headers (intrinsics, etc.) available with wrapper
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Jun 2013 14:13:07 +0000 (10:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Jun 2013 14:13:07 +0000 (10:13 -0400)
they are intentionally listed after the libc include directory so that
the gcc float.h, etc. don't get used in place of the libc ones.

tools/musl-gcc.specs.sh

index 3e88c5d1aabf4674124fe5f5f8a863f48912f84e..1f683ce0eb00bf62858c8384f72df778ce051ea9 100644 (file)
@@ -5,10 +5,10 @@ cat <<EOF
 %rename cpp_options old_cpp_options
 
 *cpp_options:
--nostdinc -isystem $incdir %(old_cpp_options)
+-nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
 
 *cc1:
-%(cc1_cpu) -nostdinc -isystem $incdir 
+%(cc1_cpu) -nostdinc -isystem -isystem include%s $incdir 
 
 *link_libgcc:
 -L$libdir -L .%s