Changeset 50420218 for chapter06/gcc.xml
- Timestamp:
- 04/28/2013 09:11:44 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 3b60741
- Parents:
- 1026c1ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/gcc.xml
r1026c1ee r50420218 42 42 <title>Installation of GCC</title> 43 43 44 <para>Apply a <command>sed</command> substitution that will suppress the45 installation of <filename class="libraryfile">libiberty.a</filename>. The46 version of <filename class="libraryfile">libiberty.a</filename> provided by47 Binutils will be used instead:</para>48 49 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>50 51 <para>Again, do not build the .info files. They are broken with the current52 version of <command>makeinfo</command>.</para>53 54 <screen><userinput remap="pre">sed -i 's/BUILD_INFO=info/BUILD_INFO=/' gcc/configure</userinput></screen>55 56 57 58 44 <para>As in <xref linkend="ch-tools-gcc-pass2"/>, apply the following 59 45 <command>sed</command> to force the build to use the … … 65 51 esac</userinput></screen> 66 52 53 <para>Workaround a bug so that GCC doesn't install 54 <filename class="libraryfile">libiberty.a</filename>, which is already 55 provided by Binutils:</para> 56 57 <screen><userinput remap="pre">sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen> 58 67 59 <para>Also fix an error in one of the check Makefiles:</para> 68 60 … … 77 69 <para>Prepare GCC for compilation:</para> 78 70 79 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr \ 80 --libexecdir=/usr/lib \ 81 --enable-shared \ 82 --enable-threads=posix \ 83 --enable-__cxa_atexit \ 84 --enable-clocale=gnu \ 85 --enable-languages=c,c++ \ 86 --disable-multilib \ 87 --disable-bootstrap \ 71 <screen><userinput remap="configure">../gcc-&gcc-version;/configure --prefix=/usr \ 72 --libexecdir=/usr/lib \ 73 --enable-shared \ 74 --enable-threads=posix \ 75 --enable-__cxa_atexit \ 76 --enable-clocale=gnu \ 77 --enable-languages=c,c++ \ 78 --disable-multilib \ 79 --disable-bootstrap \ 80 --disable-install-libiberty \ 88 81 --with-system-zlib</userinput></screen> 89 82 … … 96 89 97 90 <varlistentry> 91 <term><parameter>--disable-install-libiberty</parameter></term> 92 <listitem> 93 <para>This prevents GCC from installing its own copy of libiberty, 94 which is already provided by Binutils-&binutils-version;.</para> 95 </listitem> 96 </varlistentry> 97 98 <varlistentry> 98 99 <term><parameter>--with-system-zlib</parameter></term> 99 100 <listitem> … … 103 104 </varlistentry> 104 105 </variablelist> 105 106 <note>107 <para>There is an optional argument to <command>configure</command>,108 <option>--enable-lto</option>, that can be used to allow109 <command>gcc</command> to do do "link time optimization" if specified. No110 packages in LFS or BLFS currently use this capability.</para>111 112 <para>To use this feature, it must also be enabled in113 <application>binutils</application>.</para>114 </note>115 106 116 107 <para>Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.