diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5a43c9575..1bcc2cada 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,24 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-07-04 + + + [pierre] - Remove /tools and files containing + {i686,x86_64}-lfs in their name at the end of chapter 8. + + + [pierre] - Add --host= to libstdc++-pass2, so that host + specific headers are installed in a host specific directory. + + + [pierre] - Fix temporary Python so that static libraries + are not installed. + + + + 2020-07-01 diff --git a/chapter07/libstdc++-pass2.xml b/chapter07/libstdc++-pass2.xml index 015d8d8ea..35b5a8baf 100644 --- a/chapter07/libstdc++-pass2.xml +++ b/chapter07/libstdc++-pass2.xml @@ -62,11 +62,12 @@ cd build Prepare libstdc++ for compilation: -../libstdc++-v3/configure \ - CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ - --prefix=/usr \ - --disable-multilib \ - --disable-nls \ +../libstdc++-v3/configure \ + CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ + --prefix=/usr \ + --disable-multilib \ + --disable-nls \ + --host=$(uname -m)-lfs-linux-gnu \ --disable-libstdcxx-pch @@ -80,6 +81,15 @@ cd build + + --host=$(uname -m)-lfs-linux-gnu + + We have to mimic what would happen if this package were built + as part of a full compiler build. This switch would be passed to + configure by GCC's build machinery. + + + --disable-libstdcxx-pch diff --git a/chapter07/python.xml b/chapter07/python.xml index a3b9239cf..68a02dd8c 100644 --- a/chapter07/python.xml +++ b/chapter07/python.xml @@ -52,11 +52,20 @@ Prepare Python for compilation: -./configure --prefix=/usr --without-ensurepip +./configure --prefix=/usr \ + --enable-shared \ + --without-ensurepip The meaning of the configure option: + + --enable-shared + + This switch prevents installation of static libraries. + + + --without-ensurepip diff --git a/chapter08/revisedchroot.xml b/chapter08/revisedchroot.xml index e0321fdc9..b62fc87b8 100644 --- a/chapter08/revisedchroot.xml +++ b/chapter08/revisedchroot.xml @@ -62,6 +62,19 @@ rm -f /usr/lib/libz.a url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool Archive (.la) files". + The compiler built in and + is still partially + installed, and not needed anymore. Remove it with: + +find /usr/{bin,lib,libexec,include} \ + -depth \ + -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf + + The /tools directory can also + be removed to further gain some place: + +rm -rf /tools + Finally, remove the temporary 'tester' user account created at the beginning of the previous chapter. diff --git a/general.ent b/general.ent index 3ea3b7945..f119819fa 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - +