From 3d56263030297ac2a86d273f7eff390ac309b34a Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Wed, 23 Sep 2015 19:13:55 +0000 Subject: Fix a warning when doing test compiles. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10953 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/adjusting.xml | 2 +- chapter05/gcc-pass2.xml | 2 +- chapter05/glibc.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chapter05') 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' -- cgit v1.2.3-54-g00ecf