winegcc: Always mark executables as nx compat.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-07-30 18:29:26 +02:00 committed by Alexandre Julliard
parent d541087079
commit aae296bfd7
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ static strarray *get_link_args( struct options *opts, const char *output_name )
}
}
strarray_add( flags, "-Wl,--nxcompat" );
if (opts->image_base) strarray_add( flags, strmake("-Wl,--image-base,%s", opts->image_base ));
if (opts->large_address_aware && opts->target_cpu == CPU_x86)