Quote:
Originally Posted by charlie_lab
Hello,
Yes, I did this:
echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'
and get the output as described.
Roelof
|
Ok, but something did go wrong for some packages. Maybe sometimes you forgot to specify $LFS_TGT-gcc and used just gcc instead?
BTW, I counted your programs which link to the false linker. It is appr. 20 corrupted binaries. In my toolchain I have a lot more binaries in the directories /tools/bin and /tools/sbin. That means that most of your binaries compiled correctly. To get a complete overview you can modify the loop a little:
Code:
for f in /tools/{sbin,bin}/*; do
echo "$f"
readelf -l "$f" 2>/dev/null | grep "interpreter:"
done
If the requested interpreter-path starts with /tools it is OK. Otherwise you need to check what went wrong during compilation in chapter 5 for those programs.