Chapter 5 glibc configure: as and ld too old?
So far I have followed the book (LFS-Version 6.5) exactly and have had no troubles until 5.7. It says to configure glibc:
../glibc-2.10.1/configure --prefix=/tools \
--host=$LFS_TGT --build=$(../glibc-2.10.1/scripts/config.guess) \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.18 --with-headers=/tools/include \
When I type this in (well, copy-and-paste) to the terminal it gives me a couple of things:
configure: WARNING: using cross tools not prefixed with host triplet
some ways down:
checking for as... as
checking version of as... 2.20, bad
checking for ld... ld
checking version of ld... 2.20, bad
and at the end:
*** These critical programs are missing or too old: as ld
I have, so far, used the exact versions of each package specified in the book. The binutils version I downloaded for LFS was 2.19.1. As you can see, it's trying to use my host assembler and linker even though the second line in configure tells it to use the ones in $LFS/tools directory:
Just to make sure the $LFS_TGT variable was set, I ran:
I have a feeling that this is just some small thing I'm overlooking but I can't seem to figure it out.
Thanks in advance!