Wording on x86_64 Glibc headers page

Alexander E. Patrakov patrakov at ums.usu.ru
Sun Jan 22 22:31:07 PST 2006


Hello,

currently the Glibc headers page says:

=================

For NPTL enabled systems the following lines need to be added to 
config.cache:

echo "libc_cv_forced_unwind=yes" > config.cache
echo "libc_cv_c_cleanup=yes" >> config.cache

Glibc has an issue cross-compiling the headers, where it can misdetect 
the capabilities of Binutils and decide they are inadequate. The 
following line fixes this:

echo "libc_cv_initfini_array=yes" >> config.cache


Prepare Glibc for compilation:

CC=gcc ../glibc-20051107/configure ......

=======================

This wording is in fact unsatisfactory and the config.cache explanation 
is not correct.

The configure command in fact tells Glibc to use the host's gcc and 
cross-binutils. This combination is not supposed to work at all, and all 
those config.cache items are needed only in order to ./configure script 
to exit with the status 0 and create a Makefile that works barely enough 
to install the headers.

-- 
Alexander E. Patrakov



More information about the cross-lfs mailing list