Browse Source

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.
nixos-19.03
Ben Gamari 6 years ago committed by Tuomas Tynkkynen
parent
commit
22cc5407cd
  1. 2
      pkgs/build-support/gcc-cross-wrapper/builder.sh

2
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.?'`

Loading…
Cancel
Save