about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-10-30 17:28:00 -0400
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2016-10-31 23:44:03 +0200
commit22cc5407cd7baa1c940f9c5639ad27a95a380334 (patch)
treeb84c56efe3abf4780dc2f5ca9ffef21dbdd06660 /pkgs/build-support
parentf9f7461ed369f6ba8114ce5e71492549ceae8f8e (diff)
downloadnixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar.gz
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar.bz2
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar.lz
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar.xz
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.tar.zst
nixlib-22cc5407cd7baa1c940f9c5639ad27a95a380334.zip
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.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/builder.sh2
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 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.?'`