From a45bbbc3916a8f2f0edc29697ae28be407c53929 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 23 May 2025 12:23:43 +0800 Subject: [PATCH] Drop the min-kernel alignment hack Someone is really insistant on "you cannot have any extra whitespace" so the hack will just not work. Let's drop it and simply move the --enable-kernel= switches to the last line. --- chapter05/glibc.xml | 4 ++-- chapter08/glibc.xml | 12 ++++++------ general.ent | 6 ++---- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 11d4cfce4..def63edf0 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -90,9 +90,9 @@ cd build --prefix=/usr \ --host=$LFS_TGT \ --build=$(../scripts/config.guess) \ - --enable-kernel=&min-kernel; \ --disable-nscd \ - libc_cv_slibdir=/usr/lib + libc_cv_slibdir=/usr/lib \ + --enable-kernel=&min-kernel; The meaning of the configure options: diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index fb6b346a0..a7ce1190a 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -68,12 +68,12 @@ cd build Prepare Glibc for compilation: -../configure --prefix=/usr \ - --disable-werror \ - --disable-nscd \ - --enable-kernel=&min-kernel;\ - libc_cv_slibdir=/usr/lib \ - --enable-stack-protector=strong +../configure --prefix=/usr \ + --disable-werror \ + --disable-nscd \ + libc_cv_slibdir=/usr/lib \ + --enable-stack-protector=strong \ + --enable-kernel=&min-kernel; The meaning of the configure options: diff --git a/general.ent b/general.ent index 27b62c37f..1d2d0ee97 100644 --- a/general.ent +++ b/general.ent @@ -96,10 +96,8 @@ - + so for LFS 12.5 we may consider moving to 5.10. --> +