From 9dfc02ff38f26117daffe7d8b822ebb64a3fed04 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Mon, 3 May 2004 21:28:58 +0000 Subject: Current BE-LFS (but w/ GCC 3.3.3) merged -> 6.0 branch git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3445 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/glibc.xml | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) (limited to 'chapter05/glibc.xml') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 92d2f3ad8..48c22ea07 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -39,38 +39,44 @@ cd ../glibc-build Next, prepare Glibc for compilation: -../glibc-&glibc-version;-20031202/configure --prefix=/tools \ - --disable-profile --enable-add-ons=linuxthreads \ - --with-binutils=/tools/bin --with-headers=/tools/include \ - --without-gd --without-cvs +../glibc-&glibc-version;/configure --prefix=/tools \ + --disable-profile --enable-add-ons=nptl --with-tls \ + --with-binutils=/tools/bin --without-gd --without-cvs \ + --with-headers=/tools/glibc-kernheaders The meaning of the configure options: ---disable-profile: This -builds the libraries without profiling information. Omit this option if you -plan to do profiling on the temporary tools. +--disable-profile: This builds the +libraries without profiling information. Omit this option if you plan to do +profiling on the temporary tools. ---enable-add-ons=linuxthreads: This -tells Glibc to use the Linuxthreads add-on as its threading -library. +--enable-add-ons=nptl: This +tells Glibc to use the NPTL add-on as its threading library. ---with-binutils=/tools/bin and ---with-headers=/tools/include: Strictly speaking -these switches are not required. But they ensure nothing can go wrong with -regard to what kernel headers and Binutils programs get used during the -Glibc build. +--with-tls: This tells Glibc to include +support for TLS (thread-local storage). This is required for NPTL to work. + ---without-gd: This prevents -the build of the memusagestat program, which -strangely enough insists on linking against the host's libraries (libgd, -libpng, libz, and so forth). +--with-binutils=/tools/bin: Strictly +speaking this switch is not required. But it does ensure nothing can go wrong +with regard to what Binutils programs get used during the Glibc build. + +--without-gd: This prevents the build +of the memusagestat program, which strangely enough insists +on linking against the host's libraries (libgd, libpng, libz, and so forth). + --without-cvs: This is meant to prevent the Makefiles from attempting automatic CVS checkouts when using a CVS snapshot. But it's not actually needed these days. We use it because it suppresses an annoying but harmless warning about a missing autoconf program. + +--with-headers=/tools/glibc-kernheaders: +This tells Glibc to compile against the raw kernel headers, so +that it knows exactly what features the kernel has, and can optimize itself +accordingly. Not strictly necessary, but nice to have. During this stage you might see the following warning: -- cgit v1.2.3-54-g00ecf