mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 06:00:45 +00:00
winebuild: Append the correct options for as and ld when forcing a 32/64-bit build.
This commit is contained in:
parent
d07f67acbc
commit
0e954b14eb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user