Fix building x86_64 on x86_64 (and hopefully all other *64 archs on the same *64):
- symlink all lib64/ dirs to the corresponding lib/ dir
Also, prevent gcc from installing some of its target libs outside of the sys-root, in the first place.
Thanks to Laurent DUFRECHOU for reporting the bug and testing the fix.
/trunk/scripts/build/cc_gcc.sh | 26 0 26 0 --------------------------
/trunk/scripts/crosstool.sh | 14 14 0 0 ++++++++++++++
2 files changed, 14 insertions(+), 26 deletions(-)
1 diff -dur binutils-2.17.old/bfd/opncls.c binutils-2.17/bfd/opncls.c
2 --- binutils-2.17.old/bfd/opncls.c 2006-03-16 13:20:16.000000000 +0100
3 +++ binutils-2.17/bfd/opncls.c 2007-05-01 18:26:11.000000000 +0200
7 const bfd_target *target_vec;
10 + if (stat (filename, &s) == 0)
11 + if (S_ISDIR(s.st_mode)) {
12 + bfd_set_error (bfd_error_file_not_recognized);
16 nbfd = _bfd_new_bfd ();