diff options
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/gcc-pass1-inst.xml | 7 | ||||
-rw-r--r-- | chapter05/gcc-pass2-inst.xml | 7 |
2 files changed, 6 insertions, 8 deletions
diff --git a/chapter05/gcc-pass1-inst.xml b/chapter05/gcc-pass1-inst.xml index 8987c0cb8..2cf5349ad 100644 --- a/chapter05/gcc-pass1-inst.xml +++ b/chapter05/gcc-pass1-inst.xml @@ -13,9 +13,7 @@ default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting or modifying them when building GCC.</para> <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch -patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes.patch -patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch -patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch</userinput></screen></para> +patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes.patch</userinput></screen></para> <para>It is recommended by the GCC installation documentation to build GCC outside of the source directory in a dedicated directory:</para> @@ -28,7 +26,8 @@ cd ../gcc-build</userinput></screen></para> <para><screen><userinput>CFLAGS="-O2 -pipe" \ ../gcc-&gcc-version;/configure --prefix=/stage1 \ --with-local-prefix=/stage1 \ - --disable-nls --enable-shared </userinput></screen></para> + --disable-nls --enable-shared \ + --enable-languages=c</userinput></screen></para> <para>The meaning of the configure options are:</para> diff --git a/chapter05/gcc-pass2-inst.xml b/chapter05/gcc-pass2-inst.xml index 57f775303..1ae4e3728 100644 --- a/chapter05/gcc-pass2-inst.xml +++ b/chapter05/gcc-pass2-inst.xml @@ -5,9 +5,7 @@ <para><screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-specs-2.patch patch -Np1 -i ../gcc-&gcc-version;-mmap_test.patch -patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes.patch -patch -Np1 -i ../gcc-&gcc-version;-libstdc++_no_debug.patch -patch -Np1 -i ../gcc-&gcc-version;-libgcc_no_debug.patch </userinput></screen></para> +patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes.patch</userinput></screen></para> <para><screen><userinput>mkdir ../gcc-build cd ../gcc-build</userinput></screen></para> @@ -16,7 +14,8 @@ cd ../gcc-build</userinput></screen></para> ../gcc-&gcc-version;/configure --prefix=/stage1 \ --with-local-prefix=/stage1 \ --enable-clocale=gnu --enable-shared \ - --enable-threads=posix --enable-__cxa_atexit + --enable-threads=posix --enable-__cxa_atexit \ + --enable-languages=c,c++ make LDFLAGS="-s" make -k check make install</userinput></screen></para> |