From e55a481032fdd993414e43ef86ea0661b25a1762 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 27 Mar 2025 23:09:40 +0800 Subject: [PATCH] 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" that compiling and linking will work as expected. We do this by performing some sanity checks: -echo 'int main(){}' > dummy.c -cc dummy.c -v -Wl,--verbose &> dummy.log +echo 'int main(){}' | cc dummy.c -x c - -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' There should be no errors, @@ -319,7 +318,7 @@ SEARCH_DIR("/usr/lib"); Once everything is working correctly, clean up the test files: -rm -v dummy.c a.out dummy.log +rm -v a.out dummy.log Finally, move a misplaced file: