> Do not know how you progressed along this way. Maybe, you could try > first to see whether you can get gcc to do what you want by passing > flags to the command line, then try to automate passing those flags > using specs. > > Maybe the -L flag is enough, but you have also to specify the "crtxx" > files. Be carefull that some of those are provided by glibc but at least > one is provided by gcc. > Another interesting flags is --sysroot, but ld needs to be compiled with > that capability, which is not the case in LFS chapter 6. >
I've made some progress. My problem was getting libc.so.6 from the glibc archive and not /lib64 Turns out that libc.so is not a library but a linker script. libc.so was being picked up from the glibc archive so I changed the location of the files specified in that script to be the glibc archive and bingo it works. These lines come from dummy.log: attempt to open /home/john/lfs/glibc/glibc/usr/lib/crtn.o succeeded /home/john/lfs/glibc/glibc/usr/lib/crtn.o ld-linux-x86-64.so.2 needed by /home/john/lfs/glibc/glibc/usr/lib/libc.so.6 found ld-linux-x86-64.so.2 at /home/john/lfs/glibc/glibc/usr/lib/ld-linux-x86-64.so.2 Nice :) (that's not from dummy.log - that's from me :)) jb. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page