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 This patch makes building the shared library possible.
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/Makefile.in dmalloc-5.5.2/Makefile.in
7 --- dmalloc-5.5.2.orig/Makefile.in 2007-05-14 19:26:14.000000000 +0200
8 +++ dmalloc-5.5.2/Makefile.in 2007-05-18 15:54:04.000000000 +0200
10 # via: http://256.com/gray/email.html
11 $(LIB_SL) : $(LIBRARY)
13 - @shlinkargs@ $(LIBRARY) $(OBJS) $(NORMAL_OBJS)
14 + @shlinkargs@ $(LIBRARY)
17 $(LIBRARY) : $(OBJS) $(NORMAL_OBJS)
20 $(LIB_TH_SL) : $(LIB_TH)
22 - @shlinkargs@ $(LIB_TH) $(OBJS) $(THREAD_OBJS)
23 + @shlinkargs@ $(LIB_TH)
26 $(LIB_CXX) : $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
29 $(LIB_CXX_SL) : $(LIB_CXX)
31 - @shlinkargs@ $(LIB_CXX) $(OBJS) $(NORMAL_OBJS) $(CXX_OBJS)
32 + @shlinkargs@ $(LIB_CXX)
35 $(LIB_TH_CXX) : $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
38 $(LIB_TH_CXX_SL) : $(LIB_TH_CXX)
40 - @shlinkargs@ $(LIB_TH_CXX) $(OBJS) $(THREAD_OBJS) $(CXX_OBJS)
41 + @shlinkargs@ $(LIB_TH_CXX)
44 threadssl : $(LIB_TH_SL)