diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-10-30 17:28:00 -0400 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2016-10-31 23:44:03 +0200 |
commit | 22cc5407cd7baa1c940f9c5639ad27a95a380334 (patch) | |
tree | b84c56efe3abf4780dc2f5ca9ffef21dbdd06660 | |
parent | f9f7461ed369f6ba8114ce5e71492549ceae8f8e (diff) |
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.
-rw-r--r-- | pkgs/build-support/gcc-cross-wrapper/builder.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/builder.sh b/pkgs/build-support/gcc-cross-wrapper/builder.sh index 1bdda9696536f..b729144b86016 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.?'` |