From 22cc5407cd7baa1c940f9c5639ad27a95a380334 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 30 Oct 2016 17:28:00 -0400 Subject: 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. --- pkgs/build-support/gcc-cross-wrapper/builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/gcc-cross-wrapper/builder.sh b/pkgs/build-support/gcc-cross-wrapper/builder.sh index 1bdda9696536..b729144b8601 100644 --- a/pkgs/build-support/gcc-cross-wrapper/builder.sh +++ b/pkgs/build-support/gcc-cross-wrapper/builder.sh @@ -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.?'` -- cgit 1.4.1