diff options
Diffstat (limited to 'chapter05')
-rw-r--r-- | chapter05/gcc-exp.xml | 6 | ||||
-rw-r--r-- | chapter05/gcc-inst.xml | 4 |
2 files changed, 9 insertions, 1 deletions
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 && cd $LFS/usr/lib && ln -sf ../bin/cpp && cd $LFS/usr/bin && -ln -sf gcc cc</userinput></screen></para> +ln -sf gcc cc && +rmdir $LFS/usr/*-gnu/include && +rmdir $LFS/usr/*-gnu</userinput></screen></para> </sect2> |