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 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)