Author: jhuntwork
Date: 2007-10-06 20:09:45 -0600 (Sat, 06 Oct 2007)
New Revision: 8405
Modified:
branches/jh/BOOK/chapter01/changelog.xml
branches/jh/BOOK/chapter05/gcc-pass2.xml
branches/jh/BOOK/chapter06/coreutils.xml
Log:
Made book buildable by powerpc.
Modified: branches/jh/BOOK/chapter01/changelog.xml
===================================================================
--- branches/jh/BOOK/chapter01/changelog.xml 2007-10-07 01:57:26 UTC (rev
8404)
+++ branches/jh/BOOK/chapter01/changelog.xml 2007-10-07 02:09:45 UTC (rev
8405)
@@ -40,6 +40,9 @@
<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>
</itemizedlist>
Modified: branches/jh/BOOK/chapter05/gcc-pass2.xml
===================================================================
--- branches/jh/BOOK/chapter05/gcc-pass2.xml 2007-10-07 01:57:26 UTC (rev
8404)
+++ branches/jh/BOOK/chapter05/gcc-pass2.xml 2007-10-07 02:09:45 UTC (rev
8405)
@@ -89,7 +89,8 @@
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&@g' \
@@ -102,7 +103,8 @@
<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>,
Modified: branches/jh/BOOK/chapter06/coreutils.xml
===================================================================
--- branches/jh/BOOK/chapter06/coreutils.xml 2007-10-07 01:57:26 UTC (rev
8404)
+++ branches/jh/BOOK/chapter06/coreutils.xml 2007-10-07 02:09:45 UTC (rev
8405)
@@ -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>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page