- Timestamp:
- 07/23/2007 05:09:53 PM (17 years ago)
- Children:
- 2b75709a
- Parents:
- 8e6333e
- Location:
- chapter05
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/adjusting.xml
r8e6333e r1218687 49 49 50 50 <!-- Ampersands are needed to allow copy and paste --> 51 <screen><userinput>gcc -dumpspecs | sed 's@ ^/lib/ld-linux.so.2@/tools&@g' \51 <screen><userinput>gcc -dumpspecs | sed 's@/lib/ld-linux-x86-64.so.2@/tools&@g' \ 52 52 > `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen> 53 53 … … 85 85 86 86 <screen><computeroutput>[Requesting program interpreter: 87 /tools/lib/ld-linux .so.2]</computeroutput></screen>87 /tools/lib/ld-linux-x86-64.so.2]</computeroutput></screen> 88 88 89 89 <para>Note that <filename class="directory">/tools/lib</filename> -
chapter05/binutils-pass1.xml
r8e6333e r1218687 61 61 62 62 <screen><userinput>CC="gcc -B/usr/bin/" ../binutils-&binutils-version;/configure \ 63 --prefix=/tools --disable-nls </userinput></screen>63 --prefix=/tools --disable-nls --disable-multilib</userinput></screen> 64 64 65 65 <variablelist> … … 91 91 <para>This disables internationalization as i18n is not needed for the 92 92 temporary tools.</para> 93 </listitem> 94 </varlistentry> 95 96 <varlistentry> 97 <term><parameter>--disable-multilib</parameter></term> 98 <listitem> 99 <para>We currently only want to build support for 64-bit libraries.</para> 93 100 </listitem> 94 101 </varlistentry> -
chapter05/binutils-pass2.xml
r8e6333e r1218687 46 46 47 47 <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \ 48 --disable-nls --with-lib-path=/tools/lib</userinput></screen> 48 --disable-nls --with-lib-path=/tools/lib \ 49 --disable-multilib</userinput></screen> 49 50 50 51 <variablelist> -
chapter05/gcc-pass1.xml
r8e6333e r1218687 38 38 <title>Installation of GCC</title> 39 39 40 <para>Apply a small patch that changes the default location for 41 64-bit libraries:</para> 42 43 <screen><userinput>patch -Np1 -i ../&gcc-pure64-patch;</userinput></screen> 44 40 45 <para>The GCC documentation recommends building GCC outside of the 41 46 source directory in a dedicated build directory:</para> … … 48 53 <screen><userinput>CC="gcc -B/usr/bin/" ../gcc-&gcc-version;/configure --prefix=/tools \ 49 54 --with-local-prefix=/tools --disable-nls --enable-shared \ 50 --enable-languages=c </userinput></screen>55 --enable-languages=c --disable-multilib</userinput></screen> 51 56 52 57 <variablelist> … … 91 96 <listitem> 92 97 <para>This option ensures that only the C compiler is built.</para> 98 </listitem> 99 </varlistentry> 100 101 <varlistentry> 102 <term><parameter>--disable-multilib</parameter></term> 103 <listitem> 104 <para>We currently only want to build support for 64-bit libraries.</para> 93 105 </listitem> 94 106 </varlistentry> -
chapter05/gcc-pass2.xml
r8e6333e r1218687 87 87 <para>Apply the following patch to change the location of GCC's default 88 88 dynamic linker (typically <filename 89 class="libraryfile">ld-linux .so.2</filename>):</para>90 91 <screen><userinput>patch -Np1 -i ../&gcc- specs-patch;</userinput></screen>89 class="libraryfile">ld-linux-x86-64.so.2</filename>):</para> 90 91 <screen><userinput>patch -Np1 -i ../&gcc-pure64-specs-patch;</userinput></screen> 92 92 93 93 <para>The above patch also removes <filename … … 117 117 --enable-shared --enable-threads=posix \ 118 118 --enable-__cxa_atexit --enable-languages=c,c++ \ 119 --disable-libstdcxx-pch </userinput></screen>119 --disable-libstdcxx-pch --disable-multilib</userinput></screen> 120 120 121 121 <variablelist> … … 200 200 <screen><userinput>make install</userinput></screen> 201 201 202 <para>Since we're not building a multilib system, let's move some 203 installed libraries to a more generic location:</para> 204 <screen><userinput>cp -va /tools/lib64/* /tools/lib 205 rm -rvf /tools/lib64</userinput></screen> 206 202 207 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 203 208 href="adjusting.xml"
Note:
See TracChangeset
for help on using the changeset viewer.