mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
gcc47: trying to fix cross-building a gcc
This commit is contained in:
parent
f16193bd99
commit
43fac48f15
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue