Переглянути джерело

Fix a warning when doing test compiles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10953 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 9 роки тому
батько
коміт
3d56263030

+ 1 - 1
chapter05/adjusting.xml

@@ -45,7 +45,7 @@ unset SPECS</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 'main(){}' &gt; dummy.c
+<screen><userinput>echo 'int main(){}' &gt; dummy.c
 $LFS_TGT-gcc -B/tools/lib dummy.c
 readelf -l a.out | grep ': /tools'</userinput></screen>
 

+ 1 - 1
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:</para>
 
-<screen><userinput>echo 'main(){}' &gt; dummy.c
+<screen><userinput>echo 'int main(){}' &gt; dummy.c
 cc dummy.c
 readelf -l a.out | grep ': /tools'</userinput></screen>
 

+ 1 - 1
chapter05/glibc.xml

@@ -191,7 +191,7 @@ cd ../glibc-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 'main(){}' &gt; dummy.c
+<screen><userinput>echo 'int main(){}' &gt; dummy.c
 $LFS_TGT-gcc dummy.c
 readelf -l a.out | grep ': /tools'</userinput></screen>
 

+ 1 - 1
chapter06/adjusting.xml

@@ -42,7 +42,7 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
   functions (compiling and linking) of the adjusted toolchain are working
   as expected. To do this, perform the following sanity checks:</para>
 
-<screen os="a"><userinput>echo 'main(){}' &gt; dummy.c
+<screen os="a"><userinput>echo 'int main(){}' &gt; dummy.c
 cc dummy.c -v -Wl,--verbose &amp;&gt; dummy.log
 readelf -l a.out | grep ': /lib'</userinput></screen>
 

+ 1 - 1
prologue/hostreqs.xml

@@ -204,7 +204,7 @@ tar --version | head -n1
 makeinfo --version | head -n1
 xz --version | head -n1
 
-echo 'main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c
+echo 'int main(){}' &gt; dummy.c &amp;&amp; g++ -o dummy dummy.c
 if [ -x dummy ]
   then echo "g++ compilation OK";
   else echo "g++ compilation failed"; fi