mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
committed by
Andreas Färber
parent
e47c3e71ed
commit
74e8d516b5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user