Commit 64d883a3 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

winebuild: Add support for building on powerpc64.

With much help from Austin English.
parent 2741edb9
......@@ -358,7 +358,15 @@ struct strarray *get_as_command(void)
strarray_add( args, "-arch", (force_pointer_size == 8) ? "x86_64" : "i386", NULL );
break;
default:
strarray_add_one( args, (force_pointer_size == 8) ? "--64" : "--32" );
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;
}
}
......@@ -389,7 +397,15 @@ struct strarray *get_ld_command(void)
strarray_add( args, "-m", (force_pointer_size == 8) ? "elf_x86_64_fbsd" : "elf_i386_fbsd", NULL );
break;
default:
strarray_add( args, "-m", (force_pointer_size == 8) ? "elf_x86_64" : "elf_i386", NULL );
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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment