mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
winegcc: Add support for the -Wl,--large-address-aware option.
This commit is contained in:
parent
fec5f5cf1f
commit
7b08604778
1 changed files with 9 additions and 0 deletions
|
@ -193,6 +193,7 @@ struct options
|
|||
int unicode_app;
|
||||
int compile_only;
|
||||
int force_pointer_size;
|
||||
int large_address_aware;
|
||||
const char* wine_objdir;
|
||||
const char* output_name;
|
||||
const char* image_base;
|
||||
|
@ -704,6 +705,8 @@ static void build(struct options* opts)
|
|||
if (opts->image_base)
|
||||
strarray_add(link_args, strmake("-Wl,--image-base,%s", opts->image_base));
|
||||
|
||||
if (opts->large_address_aware) strarray_add( link_args, "-Wl,--large-address-aware" );
|
||||
|
||||
if (opts->unicode_app && !opts->shared)
|
||||
strarray_add(link_args, mingw_unicode_hack(opts));
|
||||
|
||||
|
@ -818,6 +821,7 @@ static void build(struct options* opts)
|
|||
strarray_add(spec_args, "--entry");
|
||||
strarray_add(spec_args, "__wine_spec_exe_wentry");
|
||||
}
|
||||
if (opts->large_address_aware) strarray_add( spec_args, "--large-address-aware" );
|
||||
}
|
||||
|
||||
for ( j = 0; j < lib_dirs->size; j++ )
|
||||
|
@ -1271,6 +1275,11 @@ int main(int argc, char **argv)
|
|||
opts.section_align = strdup( Wl->base[++j] );
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(Wl->base[j], "--large-address-aware"))
|
||||
{
|
||||
opts.large_address_aware = 1;
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(Wl->base[j], "-static")) linking = -1;
|
||||
strarray_add(opts.linker_args, strmake("-Wl,%s",Wl->base[j]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue