winebuild: Append the correct options for as and ld when forcing a 32/64-bit build.

This commit is contained in:
Alexandre Julliard 2009-02-04 19:33:49 +01:00
parent d07f67acbc
commit 0e954b14eb
1 changed files with 14 additions and 0 deletions

View File

@ -207,6 +207,13 @@ const char *get_as_command(void)
{
as_command = xstrdup( "as" );
}
if (force_pointer_size)
{
const char *args = (force_pointer_size == 8) ? " --64" : " --32";
as_command = xrealloc( as_command, strlen(as_command) + strlen(args) + 1 );
strcat( as_command, args );
}
}
return as_command;
}
@ -225,6 +232,13 @@ const char *get_ld_command(void)
{
ld_command = xstrdup( "ld" );
}
if (force_pointer_size)
{
const char *args = (force_pointer_size == 8) ? " -m elf_x86_64" : " -m elf_i386";
ld_command = xrealloc( ld_command, strlen(ld_command) + strlen(args) + 1 );
strcat( ld_command, args );
}
}
return ld_command;
}