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.
commit22cc5407cd7baa1c940f9c5639ad27a95a380334
authorBen Gamari <ben@smart-cactus.org>
dateSun 30 Oct 2016, 17:28 (10 years ago)
parentf9f7461
pkgs/build-support/gcc-cross-wrapper/builder.sh+1−1
@@ -8,7 +8,7 @@ mkdir $out/nix-support
88cflagsCompile="-B$out/bin/"
99
1010if test -z "$nativeLibc" -a -n "$libc"; then
11− cflagsCompile="$cflagsCompile -B$gccLibs/lib -B$libc/lib/ -isystem $libc/include"
11+ cflagsCompile="$cflagsCompile -B$gccLibs/lib -B$libc/lib/ -isystem $libc_dev/include"
1212 ldflags="$ldflags -L$libc/lib"
1313 # Get the proper dynamic linker for glibc and uclibc.
1414 dlinker=`eval 'echo $libc/lib/ld*.so.?'`