Commit 5884e98f authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Don't rename the loader to wine64 for multi-arch builds.

parent 9e7a9270
...@@ -653,6 +653,7 @@ ac_subst_vars='LTLIBOBJS ...@@ -653,6 +653,7 @@ ac_subst_vars='LTLIBOBJS
LIBOBJS LIBOBJS
TAGSFLAGS TAGSFLAGS
RT_LIBS RT_LIBS
WINELOADER_PROGRAMS
DELAYLOADFLAG DELAYLOADFLAG
MSVCRTFLAGS MSVCRTFLAGS
NETAPI_LIBS NETAPI_LIBS
...@@ -755,7 +756,6 @@ COREFOUNDATION_LIBS ...@@ -755,7 +756,6 @@ COREFOUNDATION_LIBS
ac_ct_OBJC ac_ct_OBJC
OBJCFLAGS OBJCFLAGS
OBJC OBJC
WINELOADER_PROGRAMS
CONFIGURE_TARGETS CONFIGURE_TARGETS
DISABLED_SUBDIRS DISABLED_SUBDIRS
SUBDIRS SUBDIRS
...@@ -9471,10 +9471,6 @@ $ac_links: ...@@ -9471,10 +9471,6 @@ $ac_links:
for f in $ac_links; do as_fn_append CONFIGURE_TARGETS " $f"; done for f in $ac_links; do as_fn_append CONFIGURE_TARGETS " $f"; done
} }
wine_binary="wine"
test "$HOST_ARCH" != x86_64 || wine_binary="wine64"
WINELOADER_PROGRAMS="$wine_binary"
libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'` libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
case $host_os in case $host_os in
...@@ -9946,8 +9942,6 @@ if test "x$ac_cv_cflags__Wl__no_pie" = xyes ...@@ -9946,8 +9942,6 @@ if test "x$ac_cv_cflags__Wl__no_pie" = xyes
then : then :
WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS" WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"
fi fi
test "$wine_binary" = wine || as_fn_append CONFIGURE_TARGETS " loader/wine-preloader"
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7" WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7"
else else
as_fn_append wine_warnings "|can't build Wine preloader; many programs won't work" as_fn_append wine_warnings "|can't build Wine preloader; many programs won't work"
...@@ -19600,6 +19594,14 @@ then ...@@ -19600,6 +19594,14 @@ then
fi fi
case "$HOST_ARCH,$PE_ARCHS" in
x86_64,*i386*) wine_binary="wine" ;;
x86_64,*) wine_binary="wine64" ;;
*) wine_binary="wine" ;;
esac
WINELOADER_PROGRAMS="$wine_binary"
case $host_os in case $host_os in
linux*) linux*)
case $host_cpu in case $host_cpu in
...@@ -19609,6 +19611,13 @@ case $host_os in ...@@ -19609,6 +19611,13 @@ case $host_os in
;; ;;
esac esac
;; ;;
darwin*|macosx*)
if test "$wine_can_build_preloader" = "yes"
then
test "$wine_binary" = wine || as_fn_append CONFIGURE_TARGETS " loader/wine-preloader"
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
fi
;;
esac esac
...@@ -23151,7 +23160,6 @@ READELF = $READELF ...@@ -23151,7 +23160,6 @@ READELF = $READELF
SUBDIRS = $SUBDIRS SUBDIRS = $SUBDIRS
DISABLED_SUBDIRS = $DISABLED_SUBDIRS DISABLED_SUBDIRS = $DISABLED_SUBDIRS
CONFIGURE_TARGETS = $CONFIGURE_TARGETS CONFIGURE_TARGETS = $CONFIGURE_TARGETS
WINELOADER_PROGRAMS = $WINELOADER_PROGRAMS
OBJC = $OBJC OBJC = $OBJC
OBJCFLAGS = $OBJCFLAGS OBJCFLAGS = $OBJCFLAGS
ac_ct_OBJC = $ac_ct_OBJC ac_ct_OBJC = $ac_ct_OBJC
...@@ -23254,6 +23262,7 @@ NETAPI_CFLAGS = $NETAPI_CFLAGS ...@@ -23254,6 +23262,7 @@ NETAPI_CFLAGS = $NETAPI_CFLAGS
NETAPI_LIBS = $NETAPI_LIBS NETAPI_LIBS = $NETAPI_LIBS
MSVCRTFLAGS = $MSVCRTFLAGS MSVCRTFLAGS = $MSVCRTFLAGS
DELAYLOADFLAG = $DELAYLOADFLAG DELAYLOADFLAG = $DELAYLOADFLAG
WINELOADER_PROGRAMS = $WINELOADER_PROGRAMS
RT_LIBS = $RT_LIBS RT_LIBS = $RT_LIBS
TAGSFLAGS = $TAGSFLAGS TAGSFLAGS = $TAGSFLAGS
LIBOBJS = $LIBOBJS LIBOBJS = $LIBOBJS
......
...@@ -656,9 +656,6 @@ LIBEXT="so" ...@@ -656,9 +656,6 @@ LIBEXT="so"
WINE_PATH_SONAME_TOOLS WINE_PATH_SONAME_TOOLS
WINE_CONFIG_HELPERS WINE_CONFIG_HELPERS
wine_binary="wine"
test "$HOST_ARCH" != x86_64 || wine_binary="wine64"
AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
libwine_soversion=`expr $libwine_version : '\([[0-9]]*\)\..*'` libwine_soversion=`expr $libwine_version : '\([[0-9]]*\)\..*'`
case $host_os in case $host_os in
...@@ -709,8 +706,6 @@ case $host_os in ...@@ -709,8 +706,6 @@ case $host_os in
then then
WINE_TRY_CFLAGS([-Wl,-no_pie], WINE_TRY_CFLAGS([-Wl,-no_pie],
[WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"]) [WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
dnl If preloader is used, the loader needs to be an LC_UNIXTHREAD binary to avoid AppKit/Core Animation problems. dnl If preloader is used, the loader needs to be an LC_UNIXTHREAD binary to avoid AppKit/Core Animation problems.
WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7" WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7"
else else
...@@ -2015,6 +2010,13 @@ fi ...@@ -2015,6 +2010,13 @@ fi
dnl **** Platform-specific checks **** dnl **** Platform-specific checks ****
case "$HOST_ARCH,$PE_ARCHS" in
x86_64,*i386*) wine_binary="wine" ;;
x86_64,*) wine_binary="wine64" ;;
*) wine_binary="wine" ;;
esac
AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
case $host_os in case $host_os in
linux*) linux*)
case $host_cpu in case $host_cpu in
...@@ -2024,6 +2026,13 @@ case $host_os in ...@@ -2024,6 +2026,13 @@ case $host_os in
;; ;;
esac esac
;; ;;
darwin*|macosx*)
if test "$wine_can_build_preloader" = "yes"
then
test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
fi
;;
esac esac
dnl **** Check for functions **** dnl **** Check for functions ****
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment