[PATCH] configure: Check for linker relocation support before relying on prelink
Alexandre Julliard
julliard at winehq.org
Wed Oct 21 02:17:21 CDT 2015
Michael Cronenworth <mike at cchtml.com> writes:
> @@ -1167,8 +1173,9 @@ static void build(struct options* opts)
> spawn(opts->prefix, link_args, 0);
> strarray_free (link_args);
>
> - /* set the base address */
> - if (opts->image_base && !opts->target)
> + /* set the base address with prelink if linker support is not present */
> + if (opts->image_base && !opts->target &&
> + try_link(opts->prefix, link_args, strmake("-Wl,-Ttext-segment=%s", opts->image_base)))
It looks OK now, but please avoid calling try_link() twice for the same
check.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list