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 This one was taken from debian.
3 # DP: Description: Fix __bind redefinition problem
5 # DP: Dpatch author: Phil Blundell
6 # DP: Patch author: Daniel Jacobowitz
7 # DP: Upstream status: In CVS
11 Index: sysdeps/unix/sysv/linux/arm/socket.S
12 ===================================================================
13 RCS file: /cvs/glibc/ports/sysdeps/unix/sysv/linux/arm/socket.S,v
14 retrieving revision 1.12
15 retrieving revision 1.13
17 --- glibc-2.3.6.ds1.orig/sysdeps/unix/sysv/linux/arm/socket.S 4 Dec 2004 21:20:16 -0000 1.12
18 +++ glibc-2.3.6.ds1/sysdeps/unix/sysv/linux/arm/socket.S 27 Oct 2005 18:50:12 -0000 1.13
20 -/* Copyright (C) 1995, 1996, 1997, 1998, 2003 Free Software Foundation, Inc.
21 +/* Copyright (C) 1995, 1996, 1997, 1998, 2003, 2004, 2005
22 + Free Software Foundation, Inc.
24 This file is part of the GNU C Library.
26 The GNU C Library is free software; you can redistribute it and/or
28 The .S files for the other calls just #define socket and #include this. */
31 +#ifndef NO_WEAK_ALIAS
32 #define __socket P(__,socket)
34 +#define __socket socket
38 #define PUSHARGS_1 str a1, [sp, $-4]!
43 +#ifndef NO_WEAK_ALIAS
44 weak_alias (__socket, socket)