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.
This commit is contained in:
parent
f9f7461ed3
commit
22cc5407cd
@ -8,7 +8,7 @@ mkdir $out/nix-support
|
|||||||
cflagsCompile="-B$out/bin/"
|
cflagsCompile="-B$out/bin/"
|
||||||
|
|
||||||
if test -z "$nativeLibc" -a -n "$libc"; then
|
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"
|
ldflags="$ldflags -L$libc/lib"
|
||||||
# Get the proper dynamic linker for glibc and uclibc.
|
# Get the proper dynamic linker for glibc and uclibc.
|
||||||
dlinker=`eval 'echo $libc/lib/ld*.so.?'`
|
dlinker=`eval 'echo $libc/lib/ld*.so.?'`
|
||||||
|
Loading…
Reference in New Issue
Block a user