Selaa lähdekoodia

Added the necessary libgcc_eh.a -> libgcc.a symlink to support --disable-shared in gcc pass 1. --disable-shared added in r8284

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8285 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork 18 vuotta sitten
vanhempi
commit
1799ee38cc
2 muutettua tiedostoa jossa 13 lisäystä ja 0 poistoa
  1. 4 0
      chapter01/changelog.xml
  2. 9 0
      chapter05/gcc-pass1.xml

+ 4 - 0
chapter01/changelog.xml

@@ -39,6 +39,10 @@
     <listitem>
       <para>2007-08-07</para>
       <itemizedlist>
+	<listitem>
+	  <para>[jhuntwork] - Add --disable-shared to gcc pass 1. Requires adding
+	  a libgcc_eh.a -> libgcc.a symlink.</para>
+	</listitem>
         <listitem>
           <para>[jhuntwork] - Since we're using HJL Binutils, add m4, bison and flex
 	  back to chatper 5.</para>

+ 9 - 0
chapter05/gcc-pass1.xml

@@ -129,6 +129,15 @@ cd ../gcc-build</userinput></screen>
 
 <screen><userinput>make install</userinput></screen>
 
+    <para>Using --disable-shared means that the file
+    <filename class="libraryfile">libgcc_eh.so</filename>
+    isn't built and installed. The next package, Glibc, depends on this 
+    library, so to satisfy that dependency, we'll create a symlink to
+    <filename class="libraryfile">libgcc.a</filename>.</para>
+
+<screen><userinput>ln -vs libgcc.a `gcc -print-libgcc-file-name | \
+    sed 's/libgcc/&amp;_eh/'`</userinput></screen>
+
     <para>As a finishing touch, create a symlink. Many programs and scripts
     run <command>cc</command> instead of <command>gcc</command>, which is
     used to keep programs generic and therefore usable on all kinds of UNIX