Commit 0e954b14 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent d07f67ac
...@@ -207,6 +207,13 @@ const char *get_as_command(void) ...@@ -207,6 +207,13 @@ const char *get_as_command(void)
{ {
as_command = xstrdup( "as" ); 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; return as_command;
} }
...@@ -225,6 +232,13 @@ const char *get_ld_command(void) ...@@ -225,6 +232,13 @@ const char *get_ld_command(void)
{ {
ld_command = xstrdup( "ld" ); 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; return ld_command;
} }
......
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