Author: afaerber Date: Sat Oct 30 15:35:07 2010 New Revision: 926 URL: http://tracker.coreboot.org/trac/openbios/changeset/926
Log: 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
Modified: trunk/openbios-devel/config/scripts/switch-arch
Modified: trunk/openbios-devel/config/scripts/switch-arch ============================================================================== --- trunk/openbios-devel/config/scripts/switch-arch Sat Oct 30 15:18:31 2010 (r925) +++ trunk/openbios-devel/config/scripts/switch-arch Sat Oct 30 15:35:07 2010 (r926) @@ -250,7 +250,7 @@ AS_FLAGS="-Wa,-32" ;; esac - if [ "$ARCH" != "$HOSTARCH" ]; then + if [ "$ARCH" != "$HOSTARCH" -o `uname -s` = "Darwin" ]; then cross="yes" fi crosscflags $HOSTARCH $ARCH