[PATCH] configure: Check for linker relocation support before relying on prelink
Alexandre Julliard
julliard at winehq.org
Fri Oct 16 04:16:13 CDT 2015
Michael Cronenworth <mike at cchtml.com> writes:
> @@ -988,10 +988,17 @@ wine-installed: main.o
> *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
> esac
> ])
> - AC_PATH_PROG(PRELINK, prelink, false, [/sbin /usr/sbin $PATH])
> - if test "x$PRELINK" = xfalse
> + WINE_TRY_CFLAGS([-Wl,-Ttext-segment=0x7bc00000],
> + [AC_DEFINE([HAVE_TTEXT_SEGMENT],[1],[Define if
> +linker supports -Ttext-segment.])],
> + [HAVE_TTEXT_SEGMENT="no"])
> + if test "x$HAVE_TTEXT_SEGMENT" = "xno"
The check should be done at run-time. Check how winegcc does it for
other linker flags.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list