gcc-cross-wrapper: Fix include path

Include files are typically in the libc package's `dev` output but previously `-isystem` was looking in `out`, resulting in my cross-compilation environment not finding its include files.
This commit is contained in:
Ben Gamari 2016-10-30 17:28:00 -04:00 committed by Tuomas Tynkkynen
parent f9f7461ed3
commit 22cc5407cd

View File

@ -8,7 +8,7 @@ mkdir $out/nix-support
cflagsCompile="-B$out/bin/"
if test -z "$nativeLibc" -a -n "$libc"; then
cflagsCompile="$cflagsCompile -B$gccLibs/lib -B$libc/lib/ -isystem $libc/include"
cflagsCompile="$cflagsCompile -B$gccLibs/lib -B$libc/lib/ -isystem $libc_dev/include"
ldflags="$ldflags -L$libc/lib"
# Get the proper dynamic linker for glibc and uclibc.
dlinker=`eval 'echo $libc/lib/ld*.so.?'`