winebuild: Add support for PLATFORM_FREEBSD to get_ld_command.
This commit is contained in:
parent
289ed3ada7
commit
2cc7fe2192
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue