%general-entities; ]> Glibc-&glibc-version; Headers Glibc cross tools, headers 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 built right after this chapter. cp configure{,.orig} sed -e 's/3.4/3.[0-9]/g' configure.orig > configure echo "libc_cv_forced_unwind=yes" > config.cache echo "libc_cv_c_cleanup=yes" >> config.cache echo "libc_cv_arm_tls=yes" >> config.cache CC=gcc ../glibc-&glibc-version;/configure --prefix=/usr \ --host=${CLFS_TARGET} --build=${CLFS_HOST} \ --with-headers=${CLFS}/usr/include --cache-file=config.cache The meaning of the configure options: CC=gcc Tells Glibc to use the host's GCC compiler. --with-headers=${CLFS}/usr/include This tells Glibc to compile itself against the headers recently installed to the ${CLFS}/usr/include directory, so that it knows exactly what features the kernel has and can optimize itself accordingly. Now, install the headers: make install-headers Some files aren't installed by the above command, so we will copy the additional header files we need. First we will copy a common file over to ${CLFS}/usr/include: cp -v bits/stdio_lim.h ${CLFS}/usr/include/bits Now we will create a blank stub file: touch ${CLFS}/usr/include/gnu/stubs.h Another header is needed for NPTL: cp -v \ ../glibc-&glibc-version;/ports/sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h \ ${CLFS}/usr/include/bits <para>Details on this package are located in <xref linkend="contents-glibc" role="."/></para> </sect2> </sect1>