diff -rupN BOOK//chapter05/gcc-pass1.xml BOOK_new//chapter05/gcc-pass1.xml
|
old
|
new
|
cd ../gcc-build</userinput></screen>
|
| 78 | 78 | --disable-libgomp --disable-libquadmath \ |
| 79 | 79 | --disable-target-libiberty --disable-target-zlib \ |
| 80 | 80 | --enable-languages=c --without-ppl --without-cloog \ |
| 81 | | --with-mpfr-include=$LFS/sources/gcc-&gcc-version;/mpfr/src \ |
| 82 | | --with-mpfr-lib=$LFS/sources/gcc-build/mpfr/src/.libs</userinput></screen> |
| | 81 | --with-mpfr-include=${PWD}/../gcc-&gcc-version;/mpfr/src \ |
| | 82 | --with-mpfr-lib=${PWD}/mpfr/src/.libs</userinput></screen> |
| 83 | 83 | |
| 84 | 84 | <variablelist> |
| 85 | 85 | <title>The meaning of the configure options:</title> |
diff -rupN BOOK//chapter05/gcc-pass2.xml BOOK_new//chapter05/gcc-pass2.xml
|
old
|
new
|
cd ../gcc-build</userinput></screen>
|
| 158 | 158 | --disable-libstdcxx-pch --disable-multilib \ |
| 159 | 159 | --disable-bootstrap --disable-libgomp \ |
| 160 | 160 | --without-ppl --without-cloog \ |
| 161 | | --with-mpfr-include=$LFS/sources/gcc-&gcc-version;/mpfr/src \ |
| 162 | | --with-mpfr-lib=$LFS/sources/gcc-build/mpfr/src/.libs</userinput></screen> |
| | 161 | --with-mpfr-include=${PWD}/../gcc-&gcc-version;/mpfr/src \ |
| | 162 | --with-mpfr-lib=${PWD}/mpfr/src/.libs</userinput></screen> |
| 163 | 163 | |
| 164 | 164 | <variablelist> |
| 165 | 165 | <title>The meaning of the new configure options:</title> |
diff -rupN BOOK//chapter06/gmp.xml BOOK_new//chapter06/gmp.xml
|
old
|
new
|
|
| 52 | 52 | |
| 53 | 53 | <para>First, fix a minor error noted on the upstream web page:</para> |
| 54 | 54 | |
| 55 | | <screen><userinput remap="pre"> sed -i 's/np + dn, qn/& - dn/' mpn/generic/dcpi1_bdiv_q.c</userinput></screen> |
| | 55 | <screen><userinput remap="pre">sed -i 's/np + dn, qn/& - dn/' mpn/generic/dcpi1_bdiv_q.c</userinput></screen> |
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | <para>Prepare GMP for compilation:</para> |
diff -rupN BOOK//chapter06/grep.xml BOOK_new//chapter06/grep.xml
|
old
|
new
|
|
| 42 | 42 | |
| 43 | 43 | <para>First, fix a small problem with a test script:</para> |
| 44 | 44 | |
| 45 | | <screen><userinput>sed -i 's/cp/#&/' tests/unibyte-bracket-expr</userinput></screen> |
| | 45 | <screen><userinput remap="pre">sed -i 's/cp/#&/' tests/unibyte-bracket-expr</userinput></screen> |
| 46 | 46 | |
| 47 | 47 | <para>Prepare Grep for compilation:</para> |
| 48 | 48 | |
diff -rupN BOOK//chapter06/iproute2.xml BOOK_new//chapter06/iproute2.xml
|
old
|
new
|
|
| 49 | 49 | <ulink url="&blfs-root;view/svn/server/databases.html#db"/>. |
| 50 | 50 | </para> |
| 51 | 51 | |
| 52 | | <screen><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen> |
| | 52 | <screen><userinput remap="pre">sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen> |
| 53 | 53 | |
| 54 | 54 | <para>Compile the package:</para> |
| 55 | 55 | |
diff -rupN BOOK//prologue/hostreqs.xml BOOK_new//prologue/hostreqs.xml
|
old
|
new
|
export LC_ALL=C
|
| 154 | 154 | # Simple script to list version numbers of critical development tools |
| 155 | 155 | |
| 156 | 156 | bash --version | head -n1 | cut -d" " -f2-4 |
| 157 | | echo "/bin/sh -> `readlink -f /bin/sh`" |
| | 157 | echo "/bin/sh -> `readlink -f /bin/sh`" |
| 158 | 158 | echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3- |
| 159 | 159 | bison --version | head -n1 |
| 160 | 160 | if [ -e /usr/bin/yacc ]; |
| 161 | | then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; |
| | 161 | then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`"; |
| 162 | 162 | else echo "yacc not found"; fi |
| 163 | 163 | bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6- |
| 164 | 164 | echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2 |
| … |
… |
diff --version | head -n1
|
| 166 | 166 | find --version | head -n1 |
| 167 | 167 | gawk --version | head -n1 |
| 168 | 168 | if [ -e /usr/bin/awk ]; |
| 169 | | then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; |
| | 169 | then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`"; |
| 170 | 170 | else echo "awk not found"; fi |
| 171 | 171 | gcc --version | head -n1 |
| 172 | 172 | /lib/libc.so.6 | head -n1 | cut -d"," -f1 |
| … |
… |
sed --version | head -n1
|
| 181 | 181 | tar --version | head -n1 |
| 182 | 182 | echo "Texinfo: `makeinfo --version | head -n1`" |
| 183 | 183 | xz --version | head -n1 |
| 184 | | echo 'main(){}' > dummy.c && gcc -o dummy dummy.c |
| | 184 | echo 'main(){}' > dummy.c && gcc -o dummy dummy.c |
| 185 | 185 | if [ -x dummy ]; then echo "Compilation OK"; |
| 186 | 186 | else echo "Compilation failed"; fi |
| 187 | 187 | rm -f dummy.c dummy |