diff options
author | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2007-10-07 02:09:45 +0000 |
---|---|---|
committer | Jeremy Huntwork <jhuntwork@linuxfromscratch.org> | 2007-10-07 02:09:45 +0000 |
commit | 7336a40779c2ab4b78faf1ead6f7bf5efa808330 (patch) | |
tree | ff8c71701b07fdcbc47b8fb6d0e0a4c21d195e0b | |
parent | cdaf9813abba50323a1658a58967f9966114baf9 (diff) |
Made book buildable by powerpc.
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8405 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 3 | ||||
-rw-r--r-- | chapter05/gcc-pass2.xml | 6 | ||||
-rw-r--r-- | chapter06/coreutils.xml | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index cddd36e65..58b5e3601 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -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> diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml index ba3dfb97d..b430f227e 100644 --- a/chapter05/gcc-pass2.xml +++ b/chapter05/gcc-pass2.xml @@ -89,7 +89,8 @@ sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > 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&@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>, diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 3d8288366..e2de4f940 100644 --- a/chapter06/coreutils.xml +++ b/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> |