-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jim Gifford wrote:

> Try this to see if it fixes the issue
> cp Makefile.flags{,.orig}
> sed -e "[EMAIL PROTECTED]@-I/tools/include -Iinclude@" Makefile.flags.orig > 
> Makefile.flags
>  


I tried that with "/music/clfs/cross-tools/include" instead of
"/tools/include", since we don't make the symlink to /tools in the
embedded book.  It still tries to bring in the headers from /usr/include.

But, I just tried something else that seems to work and it seems to make
sense.  The way the book reads, you issue these two commands after
configuring it how you want it:

make ARCH=i386 CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}"
make ARCH=i386 PREFIX="${CLFS}" install

What I noticed is that it is rebuilding everything on the install
command and failing on something that compiled correctly during the make
command.  So, I used the following and it installed correctly:

make ARCH=i386 CROSS_COMPILE="${CLFS_TARGET}-" CFLAGS="${BUILD}" install

I think that makes sense, since the install command as it appears in the
book wouldn't try to use the cross compiler and would therefore fail.
Maybe I am not understanding something about cross-compiling, but I
think that it is finding my native compiler on the host system since we
aren't in a chroot environment.  Let me know if this makes sense.  It
may be a bug in the book.
Joel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0rH/SwR1CJetyVERAqOkAJ9k7qPu9V0LdRKtfpS8iHMB7qOABACgj+db
hYogAOTTJ9Wv5zFM+wVHKU0=
=iVxe
-----END PGP SIGNATURE-----
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to