
8 Jan
2007
8 Jan
'07
4:15 p.m.
In message 200701080825.57752.vapier@gentoo.org you wrote:
... then define CROSS_COMPILE as empty string, i. e. use the native PPC compiler.
how does that make sense ? the logic is "if you are on a ppc host, then regardless of your target, use the native ppc compiler"
Argh.. of course you are right.
This is a remnant from the time when this was still called PPCBoot, i. e. when PPC was the only supported target architecture.
I think the test should be changed into
ifndef CROSS_COMPILE ifeq ($(HOSTARCH),$(ARCH)) CROSS_COMPILE = else ...
Then we can also drop the other special case, i. e. get rid of this:
ifeq ($(HOSTARCH),i386) CROSS_COMPILE = else
Does this work for you?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Use C++ to confuse your enemies; use C to produce stable code.