gcc47: trying to fix cross-building a gcc

This commit is contained in:
Lluís Batlle i Rossell 2012-12-22 20:03:10 +01:00
parent f16193bd99
commit 43fac48f15

View file

@ -95,7 +95,9 @@ if test "$noSysDirs" = "1"; then
NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/include
# The path to the Glibc binaries such as `crti.o'.
glibc_libdir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)/lib"
glibc_dir="$(cat $NIX_GCC_CROSS/nix-support/orig-libc)"
glibc_libdir="$glibc_dir/nix-support/orig-libc)/lib"
configureFlags="--with-native-system-header-dir=$glibc_dir/include"
extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags"
extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"