switch-arch: Force cross-compilation on Mac OS X host

r879 broke ppc cross-compilation from Darwin/ppc host.
Symptom is that the assembler chokes on arch/ppc/qemu/start.S.

Always use a cross-compiler on Darwin host
since *-apple-darwin*-{gcc,ld} would produce Mach-O binaries.

Signed-off-by: Andreas Färber <andreas.faerber@web.de>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@926 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Andreas Färber
2010-10-30 13:35:07 +00:00
committed by Andreas Färber
parent e47c3e71ed
commit 74e8d516b5

View File

@@ -250,7 +250,7 @@ for ARCH in $arch_list; do
AS_FLAGS="-Wa,-32"
;;
esac
if [ "$ARCH" != "$HOSTARCH" ]; then
if [ "$ARCH" != "$HOSTARCH" -o `uname -s` = "Darwin" ]; then
cross="yes"
fi
crosscflags $HOSTARCH $ARCH