[Clfs-support] Fix for clfs-embedded section 6.8 uClibc-0.9.30

Simon Haines simonhaines at yahoo.com.au
Wed Dec 3 15:01:40 PST 2008


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20081204/074d0248/attachment.html>


More information about the Clfs-support mailing list