Changeset 61ce0b1 for chapter06/gcc.xml
- Timestamp:
- 06/14/2014 07:51:45 PM (10 years ago)
- Branches:
- 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- c09761a
- Parents:
- 6f34f43
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc.xml
r6f34f43 r61ce0b1 42 42 <title>Installation of GCC</title> 43 43 44 <para>First fix a problem identified upstream that causes some 45 programs to fail:</para> 46 47 <screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen> 48 <!-- 44 49 <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following 45 50 <command>sed</command> to force the build to use the … … 50 55 i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;; 51 56 esac</userinput></screen> 52 <!--53 <para>Workaround a bug so that GCC doesn't install54 <filename class="libraryfile">libiberty.a</filename>, which is already55 provided by Binutils:</para>56 57 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>58 57 --> 59 <para>Also fix an error in one of the check Makefiles and disable one test in60 the g++ libmudflap test suite:</para>61 62 <screen><userinput remap="pre">sed -i -e /autogen/d -e /check.sh/d fixincludes/Makefile.in63 mv -v libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx{,.disable}</userinput></screen>64 65 58 <para>The GCC documentation recommends building GCC outside of the source 66 59 directory in a dedicated build directory:</para> … … 158 151 <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen> 159 152 153 <para>Add a compatibility symlink to enable building programs with 154 Link Time Optimization (LTO):</para> 155 156 <screen><userinput remap="install">install -dm755 /usr/lib/bfd-plugins 157 pushd /usr/lib/bfd-plugins 158 159 if [ $(uname -m) == "i686" ]; then 160 ln -sfv ../../libexec/gcc/i686-pc-linux-gnu/&gcc-version;/liblto_plugin.so 161 else 162 ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so 163 fi 164 165 popd</userinput></screen> 166 160 167 <para>Now that our final toolchain is in place, it is important to again ensure 161 168 that compiling and linking will work as expected. We do this by performing
Note:
See TracChangeset
for help on using the changeset viewer.