diff options
Diffstat (limited to 'chapter06/gcc-inst.xml')
-rw-r--r-- | chapter06/gcc-inst.xml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index 35e49751d..3b9be4484 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -20,8 +20,8 @@ GCC-testsuite package. The full GCC package contains even more compilers. Instructions for building these can be found at <ulink url="&blfs-root;view/stable/general/gcc.html"/>.</para> -<para><screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch; -patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen></para> +<screen><userinput>patch -Np1 -i ../&gcc-nofixincludes-patch; +patch -Np1 -i ../&gcc-suppress-libiberty-patch;</userinput></screen> <para>The second patch here suppresses the installation of libiberty from GCC, as we will use the one provided by binutils instead. Be careful @@ -31,24 +31,24 @@ here.</para> <para>The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:</para> -<para><screen><userinput>mkdir ../gcc-build -cd ../gcc-build</userinput></screen></para> +<screen><userinput>mkdir ../gcc-build +cd ../gcc-build</userinput></screen> <para>Now prepare GCC for compilation:</para> -<para><screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \ +<screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \ --enable-shared --enable-threads=posix \ --enable-__cxa_atexit --enable-clocale=gnu \ - --enable-languages=c,c++</userinput></screen></para> + --enable-languages=c,c++</userinput></screen> <para>Compile the package:</para> -<para><screen><userinput>make</userinput></screen></para> +<screen><userinput>make</userinput></screen> <para>Test the results, but don't stop at errors (you'll remember the few known ones):</para> -<para><screen><userinput>make -k check</userinput></screen></para> +<screen><userinput>make -k check</userinput></screen> <para>The test suite notes from <xref linkend="ch05-gcc-pass2"/> are still very much appropriate here. Be sure to refer back there should you have any @@ -56,18 +56,18 @@ doubts.</para> <para>And install the package:</para> -<para><screen><userinput>make install</userinput></screen></para> +<screen><userinput>make install</userinput></screen> <para>Some packages expect the C PreProcessor to be installed in the <filename>/lib</filename> directory. To honor those packages, create this symlink:</para> -<para><screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen></para> +<screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen> <para>Many packages use the name <userinput>cc</userinput> to call the C compiler. To satisfy those packages, create a symlink:</para> -<para><screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen></para> +<screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen> <note><para>At this point it is strongly recommended to repeat the sanity check we performed earlier in the chapter. Refer back to |