Bart De VOS pointed out that removing absolute paths from the libc linker scripts is plainly wrong.
It dates from dawn ages of the original crosstool code, and is not well explained. At that time, binutils might not understand the sysroot stuff, and it was necessary to remove absolute paths in that case.
/trunk/scripts/build/libc/glibc.sh | 14 2 12 0 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
1 --- binutils-2.17/configure.old 2004-07-21 21:36:47.000000000 -0700
2 +++ binutils-2.17/configure 2004-07-21 21:37:08.000000000 -0700
5 # Some tools are only suitable for building in a "native" situation.
6 # Remove these if host!=target.
7 -native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
8 +native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
10 # Similarly, some are only suitable for cross toolchains.
11 # Remove these if host=target.
12 --- binutils-2.17/configure.in.old 2004-07-21 21:37:19.000000000 -0700
13 +++ binutils-2.17/configure.in 2004-07-21 21:37:34.000000000 -0700
16 # Some tools are only suitable for building in a "native" situation.
17 # Remove these if host!=target.
18 -native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
19 +native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
21 # Similarly, some are only suitable for cross toolchains.
22 # Remove these if host=target.