Module: wine Branch: master Commit: 63bf2677ed22d26ff1f5ff1886fde08b1f5fb00c URL: https://gitlab.winehq.org/wine/wine/-/commit/63bf2677ed22d26ff1f5ff1886fde08...
Author: Brendan Shanks bshanks@codeweavers.com Date: Mon Nov 7 15:48:51 2022 -0800
configure: On macOS, build the loader targeting 10.7 when preloader is used.
Building the loader targeting 10.7 (to generate an LC_UNIXTHREAD binary) seems to fix an issue in the Mac driver with 10.13 and earlier where window layers wouldn't update correctly.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52354
---
configure | 1 + configure.ac | 2 ++ 2 files changed, 3 insertions(+)
diff --git a/configure b/configure index 71dfee4444e..5f1863246ea 100755 --- a/configure +++ b/configure @@ -9946,6 +9946,7 @@ then : 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" else as_fn_append wine_warnings "|can't build Wine preloader; many programs won't work" fi diff --git a/configure.ac b/configure.ac index cc3f42ecbf0..4e852da5ee7 100644 --- a/configure.ac +++ b/configure.ac @@ -711,6 +711,8 @@ case $host_os in [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. + WINELOADER_LDFLAGS="$WINELOADER_LDFLAGS -mmacosx-version-min=10.7" else WINE_WARNING([can't build Wine preloader; many programs won't work]) fi