%general-entities; %patches-entities; ]> Glibc-&glibc-version; Headers Glibc cross tools, headers <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/glibc.xml" xpointer="xpointer(//*[@role='package']/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem> <seg>Not checked yet</seg> <seg>Not checked yet</seg> </seglistitem> </segmentedlist> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../final-system/common/glibc.xml" xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/> </sect2> <sect2 role="installation"> <title>Installation of Glibc Headers The following sed removes a dependency of gcc 3.4.x from the glibc we are using in cross-lfs. The reason we are changing it is because this only installs the headers, no compiling takes place. In the next glibc chapter, we use the gcc that's build right after this chapter. cp configure{,.orig} sed -e 's/3.4/3.[0-9]/g' configure.orig > configure CC=gcc ../glibc-&glibc-version;/configure --prefix=/tools \ --host=${LFS_TARGET} --build=${LFS_HOST} \ --disable-sanity-checks --enable-kernel=2.6.0 \ --with-headers=/tools/include \ --with-binutils=/cross-tools/${LFS_TARGET}/bin Any error message you see about nptl at this point\ can safely be ignored. The meaning of the configure options: CC=gcc This do ... --prefix=/tools This tells the configure script to prepare to install the package in the /tools directory. --host=${LFS_TARGET} This do ... --build=${LFS_HOST} This do ... --disable-sanity-checks This switch do ... . --enable-kernel=2.6.0 This tells Glibc to compile the library with support for 2.6.x Linux kernels. --with-headers=/tools/include This tells Glibc to compile itself against the headers recently installed to the /tools directory, so that it knows exactly what features the kernel has and can optimize itself accordingly. --with-binutils=/cross-tools/${LFS_TARGET}/bin This switch do ... . Now, install the headers: make install-headers Some files aren't installed by the above command, then we will copy the header files we need: First we will copy a common file over to /tools/include: install -d /tools/include/bits cp bits/stdio_lim.h /tools/include/bits Now we will create a blank stub file: touch /tools/include/gnu/stubs.h For NPTL we use the following command: cp ../glibc-&glibc-version;/nptl/sysdeps/pthread/pthread.h /tools/include/ Now we copy the architecture specific header over: cp ../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h /tools/include/bits/ <para>Details on this package are located in <xref linkend="contents-glibc" role="."/></para> </sect2> </sect1>