Michael Cronenworth <mike(a)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(a)winehq.org