aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-04-05 19:21:29 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-04-05 19:21:29 +0000
commit5fb9eb8119c1356452d7d5e15ad7abd92fb6b635 (patch)
treeb1a3c68844aaf7b40170a785b9f102c493186111
parent6547aa10209da603d76cb6c004fd350034ed6599 (diff)
added commands to remove the ()/usr/*-gnu directory
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1794 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter01/changelog.xml4
-rw-r--r--chapter05/gcc-exp.xml6
-rw-r--r--chapter05/gcc-inst.xml4
-rw-r--r--chapter06/gcc-inst.xml4
4 files changed, 16 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index ebd7a6f96..4f9e8438a 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -35,6 +35,10 @@
</para></listitem>
+<listitem><para>April 5th, 2002 [gerard]: Chapter 05+06 - GCC: Added
+commands to remove the <filename class="directory">/usr/*-gnu</filename>
+directory.</para>
+
<listitem><para>April 4th, 2002 [gerard]: Chapter 05 - Diffutils: Added
--disable-nls</para></listitem>
diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml
index 0f29ccffe..5a1437079 100644
--- a/chapter05/gcc-exp.xml
+++ b/chapter05/gcc-exp.xml
@@ -31,5 +31,11 @@ cpp in /lib.</para>
creates the $LFS/usr/lib/cpp symlink as there are packages that expect
cpp to be in /usr/lib.</para>
+<para><userinput>rmdir $LFS/usr/*-gnu/include</userinput> and
+<userinput>rmdir $LFS/usr/*-gnu</userinput>: These directories are created
+as empty directories by GCC and serve absolutely no purpose whatsoever.
+It's related to cross-compilers but that doesn't apply to us and it's
+considered a bug in GCC that you can't turn that off, especially since they
+end up being empty directories. So we remove them manually.</para>
</sect2>
diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml
index f7dffd9ad..ca7244637 100644
--- a/chapter05/gcc-inst.xml
+++ b/chapter05/gcc-inst.xml
@@ -21,7 +21,9 @@ ln -sf ../usr/bin/cpp &amp;&amp;
cd $LFS/usr/lib &amp;&amp;
ln -sf ../bin/cpp &amp;&amp;
cd $LFS/usr/bin &amp;&amp;
-ln -sf gcc cc</userinput></screen></para>
+ln -sf gcc cc &amp;&amp;
+rmdir $LFS/usr/*-gnu/include &amp;&amp;
+rmdir $LFS/usr/*-gnu</userinput></screen></para>
</sect2>
diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml
index 5e86705cc..42772db72 100644
--- a/chapter06/gcc-inst.xml
+++ b/chapter06/gcc-inst.xml
@@ -29,7 +29,9 @@ ln -sf ../usr/bin/cpp &amp;&amp;
cd /usr/lib &amp;&amp;
ln -sf ../bin/cpp &amp;&amp;
cd /usr/bin &amp;&amp;
-ln -sf gcc cc</userinput></screen></para>
+ln -sf gcc cc &amp;&amp;
+rmdir /usr/*-gnu/include &amp;&amp;
+rmdir /usr/*-gnu</userinput></screen></para>
</sect2>