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 Correctly check for g++ existence.
3 Copyright 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 Licensed to you as dmalloc-5.5.2 is.
6 diff -dur dmalloc-5.5.2.orig/configure dmalloc-5.5.2/configure
7 --- dmalloc-5.5.2.orig/configure 2007-05-18 11:40:31.000000000 +0200
8 +++ dmalloc-5.5.2/configure 2007-05-18 11:42:02.000000000 +0200
12 # see if we actually have a CXX program
13 -if test "$ac_cv_prog_CXX" = "" -o ! -x "$ac_cv_prog_CXX"; then
14 +if test "$ac_cv_prog_CXX" = "" -o ! -x `which "$ac_cv_prog_CXX"`; then
15 { echo "$as_me:$LINENO: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&5
16 echo "$as_me: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&2;}