After glibc is built for the first pass in the toolchain, we build the test code to check that its pointing to the correct interpreter:
cd $PBBLD/src1 echo " [.] testing toolchain " echo 'main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' 1>>$PBLOG/strap_tooladj.log 2>>$PBLOG/strap_tooladj.err
This should produce output:
[Requesting program interpreter: $TOOLS/lib64/ld-linux-x86-64.so.2]
The toolchain script doesn't actually check the result that is stored in the log. Since this can totally hose up a build if it breaks for some reason, we probably should add some code to the script to check and alter the developer.
After glibc is built for the first pass in the toolchain, we build the test code to check that its pointing to the correct interpreter:
cd $PBBLD/src1 echo " [.] testing toolchain " echo 'main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' 1>>$PBLOG/strap_tooladj.log 2>>$PBLOG/strap_tooladj.err
This should produce output:[Requesting program interpreter: $TOOLS/lib64/ld-linux-x86-64.so.2]
The toolchain script doesn't actually check the result that is stored in the log. Since this can totally hose up a build if it breaks for some reason, we probably should add some code to the script to check and alter the developer.