winegcc: Only pass large-address-aware option for i386 builds.

This commit is contained in:
Alexandre Julliard 2014-04-29 16:02:25 +02:00
parent 56d7e3b9a7
commit 1b02177a55
1 changed files with 2 additions and 1 deletions

View File

@ -926,7 +926,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->large_address_aware && opts->target_cpu == CPU_x86)
strarray_add( link_args, "-Wl,--large-address-aware" );
if (opts->unicode_app && !opts->shared)
strarray_add(link_args, mingw_unicode_hack(opts));