On 8/25/2012 10:02 AM, Hadi wrote:
Hi Emerson,
Thank your feedback, Emerson.
I think I should correct you first. After binutils-2.22-Pass1 in
Chapter 5 LFS 7.1, binutils are NOT picked up from the /tools directory:
PATH= PATH=/tools/bin:/bin:/usr/bin
In /tools/bin, there is only $LFS_TGT-* tools as following in my X86
virtual box:
lfs:/mnt/lfs$ ls tools/bin/
i686-lfs-linux-gnu-addr2line i686-lfs-linux-gnu-elfedit
i686-lfs-linux-gnu-ld i686-lfs-linux-gnu-ranlib
i686-lfs-linux-gnu-ar i686-lfs-linux-gnu-gcc i686-lfs-linux-gnu-ld.bfd
i686-lfs-linux-gnu-readelf
i686-lfs-linux-gnu-as i686-lfs-linux-gnu-gcc-4.6.2
i686-lfs-linux-gnu-nm i686-lfs-linux-gnu-size
i686-lfs-linux-gnu-c++filt i686-lfs-linux-gnu-gcov
i686-lfs-linux-gnu-objcopy i686-lfs-linux-gnu-strings
i686-lfs-linux-gnu-cpp i686-lfs-linux-gnu-gprof
i686-lfs-linux-gnu-objdump i686-lfs-linux-gnu-strip
Or we can use command "which is ld", it shows that ld is the host's:
lfs:/mnt/lfs$ which is ld
which: no is in (/tools/bin:/bin:/usr/bin)
/usr/bin/ld
Although in /tools/i686-lfs-linux-gnu/ there is binutils (ar/ld), but
/tools/i686-lfs-linux-gnu is not in the PATH.
So it is not easy to understand "Binutils is installed first because
the configure runs of both GCC and Glibc perform various feature tests
on the assembler and linker to determine which software features to
enable or disable." and the tool chain constructing process.
Hadi
If /tools is in the path, then all subdirectories are also in the path.
Binutils primarily contains the assembler and linker needed by GCC to
build assembler portions of any code.
Elly
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page