diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index 7179233d2..e567da5a5 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -45,7 +45,7 @@ unset SPECS functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c $LFS_TGT-gcc -B/tools/lib dummy.c readelf -l a.out | grep ': /tools' diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index e2df1764d..ec460e482 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -181,7 +181,7 @@ RANLIB=$LFS_TGT-ranlib \ functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c cc dummy.c readelf -l a.out | grep ': /tools' diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index bb32d5b97..a8ce5fd41 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -191,7 +191,7 @@ cd ../glibc-build functions (compiling and linking) of the new toolchain are working as expected. To perform a sanity check, run the following commands: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c $LFS_TGT-gcc dummy.c readelf -l a.out | grep ': /tools' diff --git a/chapter06/adjusting.xml b/chapter06/adjusting.xml index df01e9b68..bc9e236a6 100644 --- a/chapter06/adjusting.xml +++ b/chapter06/adjusting.xml @@ -42,7 +42,7 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld functions (compiling and linking) of the adjusted toolchain are working as expected. To do this, perform the following sanity checks: -echo 'main(){}' > dummy.c +echo 'int main(){}' > dummy.c cc dummy.c -v -Wl,--verbose &> dummy.log readelf -l a.out | grep ': /lib' diff --git a/prologue/hostreqs.xml b/prologue/hostreqs.xml index 9e6fbc9be..f77d88105 100644 --- a/prologue/hostreqs.xml +++ b/prologue/hostreqs.xml @@ -204,7 +204,7 @@ tar --version | head -n1 makeinfo --version | head -n1 xz --version | head -n1 -echo 'main(){}' > dummy.c && g++ -o dummy dummy.c +echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c if [ -x dummy ] then echo "g++ compilation OK"; else echo "g++ compilation failed"; fi