在 星期三 01 七月 2009 08:52:54,booleandomain 写道: > Hello, > > I'm a CLFS newbie. I don't understand why cross-compiling tools such as > binutils and gcc. Let me explain. My CPU is an Intel Core 2 Duo. The > host system is Gentoo Linux running on that CPU. uname -m returns > x86_64. I want my target Linux system to run on the same computer as the > host system, so the target should return x86_64 too. So why putting > x86_64-cross-linux-gnu for --build and --host and x86_64-pc-linux- gnu > for --target? It should be build=host=target=x86_64-pc-linux-gnu (native > mode). > > Thanks. > _______________________________________________ > Clfs-support mailing list > [email protected] > http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Cross-compiling is because of this: your target is not same as your host. Code compiled for the host would not excute on the different target. So cross-compile is required: A toolchain itselft excute on the host and generate code excute on the target. _______________________________________________ Clfs-support mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
