[PATCH 0/2] MR10151: configure: Fix building with mingw host.
Fix building with a MinGW host after !10123 and !10119. Such builds are also missing a few other useful flags that we check as part of the cross-compiler detection. It might be worth trying to share more of those checks (perhaps by using PE_ARCHS on a mingw host?), but for now I kept the change simple. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10151
From: Jacek Caban <jacek@codeweavers.com> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 74163f7933f..d453f178fcb 100644 --- a/configure.ac +++ b/configure.ac @@ -2016,11 +2016,11 @@ then mingw32*) dnl Check for delayload linker support WINE_TRY_CFLAGS([-Wl,-delayload,autoconftest.dll],[AC_SUBST(DELAYLOADFLAG,["-Wl,-delayload,"])]) ;; *) MSVCRTFLAGS="-D_WIN32" - WINE_TRY_CFLAGS([-mlong-double-64],[MSVCRTFLAGS="$MSVCRTFLAGS -mlong-double-64"]) WINE_TRY_CFLAGS([-fno-builtin],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-builtin"]) WINE_TRY_CFLAGS([-fshort-wchar],[MSVCRTFLAGS="$MSVCRTFLAGS -fshort-wchar"]) WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;; esac + WINE_TRY_CFLAGS([-mlong-double-64],[MSVCRTFLAGS="$MSVCRTFLAGS -mlong-double-64"]) case $HOST_ARCH in dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10151
From: Jacek Caban <jacek@codeweavers.com> --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index d453f178fcb..af6722bd0e8 100644 --- a/configure.ac +++ b/configure.ac @@ -912,6 +912,8 @@ case $host_os in LIBEXT="dll" DLLEXT="" EXTRACFLAGS="-D__WINE_PE_BUILD" + wine_compiler_rt_libs="compiler-rt" + enable_compiler_rt=${enable_compiler_rt:-yes} dnl Disable modules that can't be used on Windows enable_loader=${enable_loader:-no} enable_server=${enable_server:-no} -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10151
This merge request was closed by Jacek Caban. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10151
Superseded by b3d309157b4dd632b1227720b7049ab7433bebba, thanks! -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10151#note_130124
participants (2)
-
Jacek Caban -
Jacek Caban (@jacek)