Thinking forward LFS-7.0

Andrew Benton b3nton at gmail.com
Sun Mar 20 15:38:09 PDT 2011


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

> On Sun, Mar 20, 2011 at 10:06 AM, Andrew Benton <b3nton at 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 at 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



More information about the lfs-dev mailing list