Just to let the community know that there is a bug in the clfs-embedded book
(from svn head) in section 6.8.
The faulty command is: make CC="${CC} ${BUILD}"

The idea is to append the "-mabi" or "-m" flag (set in section 6.3) to the
CC variable produced by the Makefile's rules. As it is currently written,
the command tries to substitute the (non-existent) $CC variable. Rewriting
the command with shell escaping to: make CC="\${CC} ${BUILD}" produces the
following error:
Rules.mak:138: *** Recusive variable `CC' references itself (eventually).
Stop.

If the host and the target are both 32-bit (using the -m32 flag), it is safe
to just use the command: make. For cross-compiling to other architectures,
try the command: make CFLAGS=${BUILD}. I haven't tested the latter command
though.

Cheers,
Simon.
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org

Reply via email to