winebuild: Add support for building on powerpc64.

With much help from Austin English.
This commit is contained in:
André Hentschel 2011-11-06 17:30:33 +01:00 committed by Alexandre Julliard
parent 2741edb998
commit 64d883a356
1 changed files with 18 additions and 2 deletions

View File

@ -357,10 +357,18 @@ struct strarray *get_as_command(void)
case PLATFORM_APPLE:
strarray_add( args, "-arch", (force_pointer_size == 8) ? "x86_64" : "i386", NULL );
break;
default:
switch(target_cpu)
{
case CPU_POWERPC:
strarray_add_one( args, (force_pointer_size == 8) ? "-a64" : "-a32" );
break;
default:
strarray_add_one( args, (force_pointer_size == 8) ? "--64" : "--32" );
break;
}
break;
}
}
if (cpu_option) strarray_add_one( args, strmake("-mcpu=%s", cpu_option) );
@ -388,10 +396,18 @@ struct strarray *get_ld_command(void)
case PLATFORM_FREEBSD:
strarray_add( args, "-m", (force_pointer_size == 8) ? "elf_x86_64_fbsd" : "elf_i386_fbsd", NULL );
break;
default:
switch(target_cpu)
{
case CPU_POWERPC:
strarray_add( args, "-m", (force_pointer_size == 8) ? "elf64ppc" : "elf32ppc", NULL );
break;
default:
strarray_add( args, "-m", (force_pointer_size == 8) ? "elf_x86_64" : "elf_i386", NULL );
break;
}
break;
}
}
return args;
}