[lfs] 02/03: gcc: Use the same style for the sanity check compile command as glibc pass1
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <[email protected]> |
This is an automated email from the git hooks/post-receive script. git pushed a commit to branch trunk in repository lfs. commit e55a481032fdd993414e43ef86ea0661b25a1762 Author: Xi Ruoyao <[email protected]> AuthorDate: Thu Mar 27 23:09:40 2025 +0800 gcc: Use the same style for the sanity check compile command as glibc pass1 There seems no valid reason to use a different style here. --- chapter08/gcc.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index f0616e2cd..763f55ced 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -223,8 +223,7 @@ su tester -c "PATH=$PATH make -k check"</userinput></screen> that compiling and linking will work as expected. We do this by performing some sanity checks:</para> -<screen><userinput>echo 'int main(){}' > dummy.c -cc dummy.c -v -Wl,--verbose &> dummy.log +<screen><userinput>echo 'int main(){}' | cc dummy.c -x c - -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib'</userinput></screen> <para>There should be no errors, @@ -319,7 +318,7 @@ SEARCH_DIR("/usr/lib");</computeroutput></screen> <para>Once everything is working correctly, clean up the test files:</para> -<screen><userinput>rm -v dummy.c a.out dummy.log</userinput></screen> +<screen><userinput>rm -v a.out dummy.log</userinput></screen> <para>Finally, move a misplaced file:</para> -- To stop receiving notification emails like this one, please contact the administrator of this repository. -- http://lists.linuxfromscratch.org/sympa/info/lfs-book Unsubscribe: See the above information page