On Sun, 20 Mar 2011 14:01:40 -0700
Nathan Coulson <conat...@gmail.com> wrote:

> On Sun, Mar 20, 2011 at 10:06 AM, Andrew Benton <b3n...@gmail.com> wrote:
> 
> > Any chance you could give me a clue how you got gcc to install
> > into /usr/lib and not /usr/lib64?
> >
> 
> sed -i -e 's@/lib64/ld-linux-x86-64.so.2@/lib/ld-linux-x86-64.so.2@g' \
>         gcc/config/i386/linux64.h &&
> echo "MULTILIB_OSDIRNAMES = ../lib ../lib/32" >> gcc/config/i386/t-linux64
> 
> (I use 64bit in /lib,  and 32bit in /lib/32, but can be adapted for your
> purposes)
> 
Many thanks! I had found the sed to gcc/config/i386/linux64.h through
my own stumblings but I had'nt worked out the t-linux64 bit. For the
record, these three steps seem to do the trick to avoid needing the 
/lib64 symlink: 

1 Don't make the /lib64 symlink (obviously;) 
2 Glibc needs a sed:
  sed -i 's|/lib64|/lib|' sysdeps/unix/sysv/linux/configure
3 GCC needs an extra sed to the specfile
  -e sed 's/lib64/lib/'
and a sed to the source:
  sed -i 's/lib64/lib/' gcc/config/i386/{linux64.h,t-linux64}

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to