aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/glibc.xml9
1 files changed, 4 insertions, 5 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index e3685c4e4..103fa42c8 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -195,9 +195,8 @@ cd build</userinput></screen>
functions (compiling and linking) of the new toolchain are working as
expected. To perform a sanity check, run the following commands:</para>
-<screen><userinput>echo 'int main(){}' &gt; dummy.c
-$LFS_TGT-gcc dummy.c
-readelf -l a.out | grep '/ld-linux'</userinput></screen>
+<screen><userinput>echo 'int main(){}' | gcc -xc -
+readelf -l a.out | grep ld-linux</userinput></screen>
<para>If everything is working correctly, there should be no errors,
and the output of the last command will be of the form:</para>
@@ -212,9 +211,9 @@ readelf -l a.out | grep '/ld-linux'</userinput></screen>
where the problem is and correct it. This issue must be resolved before
continuing on.</para>
- <para>Once all is well, clean up the test files:</para>
+ <para>Once all is well, clean up the test file:</para>
-<screen><userinput>rm -v dummy.c a.out</userinput></screen>
+<screen><userinput>rm -v a.out</userinput></screen>
</caution>