Changeset da5dcd8 for chapter05


Ignore:
Timestamp:
03/14/2005 05:50:17 AM (20 years ago)
Author:
Jim Gifford <jim@…>
Children:
186416d
Parents:
7862089
Message:

Merged Matts r4741

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4748 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter05
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter05/binutils-pass1.xml

    r7862089 rda5dcd8  
    5656<para>Now prepare Binutils for compilation:</para>
    5757
    58 <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
    59     --disable-nls</userinput></screen>
     58<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen>
    6059
    6160<para>The meaning of the configure options:</para>
     
    7069<varlistentry>
    7170<term><parameter>--disable-nls</parameter></term>
    72 <listitem><para>This disables internationalization. This is not needed
    73 for the static programs, and NLS can cause problems when linking
    74 statically.</para></listitem>
     71<listitem><para>This disables internationalization. This is not needed for the
     72temporary tools.</para></listitem>
    7573</varlistentry>
    7674</variablelist>
     
    7876<para>Continue with compiling the package:</para>
    7977
    80 <screen><userinput>make configure-host
    81 make LDFLAGS="-all-static"</userinput></screen>
    82 
    83 <para>The meaning of the make parameters:</para>
    84 
    85 <variablelist>
    86 <varlistentry>
    87 <term><parameter>configure-host</parameter></term>
    88 <listitem><para>This forces all subdirectories to be configured
    89 immediately. A statically-linked build will fail without it. Use this
    90 option to work around the problem.</para></listitem>
    91 </varlistentry>
    92 
    93 <varlistentry>
    94 <term><parameter>LDFLAGS="-all-static"</parameter></term>
    95 <listitem><para>This tells the linker that all Binutils programs
    96 should be linked statically. However, strictly speaking,
    97 <parameter>"-all-static"</parameter> is passed to the
    98 <command>libtool</command> program, which then passes
    99 <parameter>"-static"</parameter> to the linker.</para></listitem>
    100 </varlistentry>
    101 </variablelist>
     78<screen><userinput>make</userinput></screen>
    10279
    10380<para>Compilation is now complete. Ordinarily we would now run the
     
    11693
    11794<screen><userinput>make -C ld clean
    118 make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
     95make -C ld LIB_PATH=/tools/lib</userinput></screen>
    11996
    12097<para>The meaning of the make parameters:</para>
     
    129106
    130107<varlistentry>
    131 <term><parameter>-C ld LDFLAGS="-all-static"
    132 LIB_PATH=/tools/lib</parameter></term>
     108<term><parameter>-C ld LIB_PATH=/tools/lib</parameter></term>
    133109<listitem><para>This option rebuilds everything in the
    134110<filename class="directory">ld</filename> subdirectory. Specifying
  • chapter05/gcc-pass1.xml

    r7862089 rda5dcd8  
    6565<varlistentry>
    6666<term><parameter>--enable-shared</parameter></term>
    67 <listitem><para>This switch may seem counter-intuitive at first.
    68 However, this switch allows the building of
     67<listitem><para>This switch allows the building of
    6968<filename class="libraryfile">libgcc_s.so.1</filename> and
    70 <filename class="libraryfile">libgcc_eh.a</filename>, and having
    71 <filename class="libraryfile">libgcc_eh.a</filename> available ensures that the configure
    72 script for Glibc (the next package we compile) produces the proper
    73 results. Note that the GCC binaries will still be linked statically
    74 because this is controlled by the <parameter>-static</parameter> value of
    75 the <envar>BOOT_LDFLAGS</envar> variable in the next
    76 step.</para></listitem>
     69<filename class="libraryfile">libgcc_eh.a</filename>.  Having
     70<filename class="libraryfile">libgcc_eh.a</filename> available ensures that the
     71configure script for Glibc (the next package we compile) produces the proper
     72results.</para></listitem>
    7773</varlistentry>
    7874
     
    8884<para>Continue with compiling the package:</para>
    8985
    90 <screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen>
     86<screen><userinput>make bootstrap</userinput></screen>
    9187
    9288<para>The meaning of the make parameters:</para>
    9389
    9490<variablelist>
    95 <varlistentry>
    96 <term><parameter>BOOT_LDFLAGS="-static"</parameter></term>
    97 <listitem><para>This tells GCC to link its programs statically.</para></listitem>
    98 </varlistentry>
    99 
    10091<varlistentry>
    10192<term><parameter>bootstrap</parameter></term>
  • chapter05/toolchaintechnotes.xml

    r7862089 rda5dcd8  
    179179
    180180
    181 <sect2>
     181<!-- Removed as part of the fix for bug 1061 - we no longer build pass1
     182     packages statically, therefore this explanation isn't required -->
     183
     184<!--<sect2>
    182185<title>Notes on Static Linking</title>
    183186
     
    222225achieved when the first two packages are built dynamically.</para>
    223226
    224 </sect2>
     227</sect2>-->
    225228
    226229</sect1>
Note: See TracChangeset for help on using the changeset viewer.