Browse Source

Made book buildable by powerpc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8405 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork 18 năm trước cách đây
mục cha
commit
7336a40779
3 tập tin đã thay đổi với 10 bổ sung3 xóa
  1. 3 0
      chapter01/changelog.xml
  2. 4 2
      chapter05/gcc-pass2.xml
  3. 3 1
      chapter06/coreutils.xml

+ 3 - 0
chapter01/changelog.xml

@@ -39,6 +39,9 @@
      <listitem>
       <para>2007-10-06</para>
       <itemizedlist>
+        <listitem>
+          <para>[jhuntwork] - Made book buildable by powerpc.</para>
+        </listitem>
         <listitem>
           <para>[jhuntwork] - Moved GCC's bootstrap to pass 2.</para>
         </listitem>

+ 4 - 2
chapter05/gcc-pass2.xml

@@ -89,7 +89,8 @@ sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig &gt; gcc/Makefile.in</userin
     GCC. That is, all of the binaries created during the build will link
     against the new Glibc. Issue:</para>
 
-<screen><userinput remap="pre">for file in $(find gcc/config -name linux64.h -o -name linux.h)
+<screen><userinput remap="pre">for file in \
+ $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
 do
   cp -uv $file{,.orig}
   sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&amp;@g' \
@@ -102,7 +103,8 @@ done</userinput></screen>
 
     <para>In case the above seems hard to follow, let's break it down a bit.
     First we find all the files under the gcc/config directory that are named
-    either <filename>linux.h</filename> or <filename>linux64.h</filename>.
+    either <filename>linux.h</filename>, <filename>linux64.h</filename> or
+    <filename>sysv4.h</filename>.
     For each file found, we copy it to a file of the same name but with an added
     suffix of <quote>.orig</quote>. Then the first sed expression prepends
     <quote>/tools</quote> to every instance of <quote>/lib/ld</quote>,

+ 3 - 1
chapter06/coreutils.xml

@@ -52,7 +52,9 @@
     returns <computeroutput>unknown</computeroutput>. The following patch
     fixes this behavior for Intel architectures:</para>
 
-<screen><userinput remap="pre">patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>
+<screen><userinput remap="pre">case `uname -m` in
+ i?86 | x86_64) patch -Np1 -i ../&coreutils-uname-patch; ;;
+esac</userinput></screen>
 
     <para>Prevent Coreutils from installing binaries that will be installed by
     other packages later:</para>