diff options
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/chapter06.xml | 1 | ||||
-rw-r--r-- | chapter06/creatingdirs.xml | 5 | ||||
-rw-r--r-- | chapter06/readjusting.xml | 7 |
3 files changed, 7 insertions, 6 deletions
diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 9266c3fc0..52e6fe6b7 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -48,7 +48,6 @@ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gawk.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="findutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="flex.xml"/> - <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="grub.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gettext.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="groff.xml"/> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gzip.xml"/> diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml index 382b1e504..edd659738 100644 --- a/chapter06/creatingdirs.xml +++ b/chapter06/creatingdirs.xml @@ -24,8 +24,9 @@ mkdir -pv /usr/{,local/}share/man/man{1..8} for dir in /usr /usr/local; do ln -sv share/{man,doc,info} $dir done -ln -sv lib /lib64 -ln -sv lib /usr/lib64 +case $(uname -m) in + x86_64) ln -sv lib /lib64 && ln -sv lib /usr/lib64 ;; +esac mkdir -v /var/{lock,log,mail,run,spool} mkdir -pv /var/{opt,cache,lib/{misc,locate},local}</userinput></screen> diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index 8bda83151..695a6d684 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -33,9 +33,10 @@ mv -v /tools/bin/{ld-new,ld} ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen> <para>Next, amend the GCC specs file so that it points to the new - dynamic linker, and so that GCC knows where to find the correct headers - and Glibc start files. A <command>sed</command> command accomplishes - this:</para> + dynamic linker. Simply deleting all instances of <quote>/tools</quote> should + leave us with the correct path to the dynamic linker. Also adjust the specs file + so that GCC knows where to find the correct headers and Glibc start files. + A <command>sed</command> command accomplishes this:</para> <screen><userinput>gcc -dumpspecs | sed -e 's@/tools@@g' \ -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \ |