Commit 2cc7fe21 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

winebuild: Add support for PLATFORM_FREEBSD to get_ld_command.

parent 289ed3ad
...@@ -297,9 +297,20 @@ const char *get_ld_command(void) ...@@ -297,9 +297,20 @@ const char *get_ld_command(void)
if (force_pointer_size) if (force_pointer_size)
{ {
const char *args = (target_platform == PLATFORM_APPLE) ? const char *args;
((force_pointer_size == 8) ? " -arch x86_64" : " -arch i386") :
((force_pointer_size == 8) ? " -m elf_x86_64" : " -m elf_i386"); switch (target_platform)
{
case PLATFORM_APPLE:
args = (force_pointer_size == 8) ? " -arch x86_64" : " -arch i386";
break;
case PLATFORM_FREEBSD:
args = (force_pointer_size == 8) ? " -m elf_x86_64" : " -m elf_i386_fbsd";
break;
default:
args = (force_pointer_size == 8) ? " -m elf_x86_64" : " -m elf_i386";
break;
}
ld_command = xrealloc( ld_command, strlen(ld_command) + strlen(args) + 1 ); ld_command = xrealloc( ld_command, strlen(ld_command) + strlen(args) + 1 );
strcat( ld_command, args ); strcat( ld_command, args );
} }
......
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