mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-12-27 03:33:50 -05:00
glibc: Drop --with-headers in pass 1
I cannot see why this is ever needed. The default is "the compiler default" which should be correct as the compiler has been configured --with-sysroot. And the explanation for this switch is just repeating a common misunderstanding. In fact glibc **never** attempts to figure out what features the kernel has from the headers. Instead it depends on the kernel-features.h files in the source tree and the --with-kernel value to determine the kernel features that it can rely on.
This commit is contained in:
@@ -91,7 +91,6 @@ cd build</userinput></screen>
|
||||
--host=$LFS_TGT \
|
||||
--build=$(../scripts/config.guess) \
|
||||
--enable-kernel=&min-kernel; \
|
||||
--with-headers=$LFS/usr/include \
|
||||
--disable-nscd \
|
||||
libc_cv_slibdir=/usr/lib</userinput></screen>
|
||||
|
||||
@@ -116,16 +115,6 @@ cd build</userinput></screen>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>--with-headers=$LFS/usr/include</parameter></term>
|
||||
<listitem>
|
||||
<para>This tells Glibc to compile itself against the headers
|
||||
recently installed to the $LFS/usr/include directory, so that
|
||||
it knows exactly what features the kernel has and can optimize
|
||||
itself accordingly.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><parameter>libc_cv_slibdir=/usr/lib</parameter></term>
|
||||
<listitem>
|
||||
|
||||
Reference in New Issue
Block a user