At "make AUTOCONF=no" for Glibc-2.3.3, in Chapter 5, LFS 5.1.1, i get the error:
Code:
In file included from ../include/libc-symbols.h:56,
from <command line>:6:
/mnt/lfs/sources/glibc-build/config.h:3:3: #error "glibc cannot be compiled without optimization"
make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
make: *** [all] Error 2
lfs:/mnt/lfs/sources/glibc-build$
Im following the book, apart from using the cross-compiling hint (
http://archive.daniel-baumann.ch/lin...-x86-5.1-1.txt)
The output of env is:
Code:
TERM=xterm
LC_ALL=POSIX
LFS=/mnt/lfs
CXXFLAGS=-march=pentium
PATH=/tools/bin:/bin:/usr/bin
CHOST=i586-pc-linux-gnu
PWD=/mnt/lfs/sources/glibc-build
PS1=\u:\w\$
SHLVL=1
HOME=/home/lfs
CFLAGS=-march=pentium
_=/usr/bin/env
OLDPWD=/mnt/lfs/sources
To configure i used the options as specified in the crosscompiling hint.
How do i cross-compile glibc?
Thanks.