Added configure-dwarf4 patchset

This patchset is to allow general testing before it's being submitted upstream.
This commit is contained in:
Alistair Leslie-Hughes 2021-11-05 07:56:45 +11:00
parent df26057ddf
commit 120e2d362f
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,36 @@
From 5d62ab1fd576aa9e11a387a6b2a1b250aecc1803 Mon Sep 17 00:00:00 2001
From: Eric Pouech <eric.pouech@gmail.com>
Date: Fri, 5 Nov 2021 07:56:04 +1100
Subject: [PATCH] configure.ac: let dwarf4 be Wine's default debug format
---
configure.ac | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 57bd9a6f9ec..0196af56783 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1051,8 +1051,7 @@ then
if test "x$ac_debug_format_seen" = x
then
case $CROSSDEBUG in
- *dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-2])
- WINE_TRY_CROSSCFLAGS([-gstrict-dwarf]) ;;
+ *dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-4]) ;;
pdb) WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
esac
fi
@@ -1865,8 +1864,7 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
done
if test "x$ac_debug_format_seen" = xdefault
then
- WINE_TRY_CFLAGS([-gdwarf-2])
- WINE_TRY_CFLAGS([-gstrict-dwarf])
+ WINE_TRY_CFLAGS([-gdwarf-4])
fi
dnl Disable gcc builtins except for Mingw
--
2.33.0

View File

@ -91,6 +91,7 @@ patch_enable_all ()
enable_comctl32_rebar_capture="$1"
enable_comctl32_version_6="$1"
enable_comdlg32_lpstrFileTitle="$1"
enable_configure_dwarf4="$1"
enable_crypt32_CMS_Certificates="$1"
enable_cryptext_CryptExtOpenCER="$1"
enable_d3drm_IDirect3D3_support="$1"
@ -302,6 +303,9 @@ patch_enable ()
comdlg32-lpstrFileTitle)
enable_comdlg32_lpstrFileTitle="$2"
;;
configure-dwarf4)
enable_configure_dwarf4="$2"
;;
crypt32-CMS_Certificates)
enable_crypt32_CMS_Certificates="$2"
;;
@ -1499,6 +1503,15 @@ if test "$enable_comdlg32_lpstrFileTitle" -eq 1; then
patch_apply comdlg32-lpstrFileTitle/0001-comdlg32-Postpone-setting-ofn-lpstrFileTitle-to-work.patch
fi
# Patchset configure-dwarf4
# |
# | Modified files:
# | * configure.ac
# |
if test "$enable_configure_dwarf4" -eq 1; then
patch_apply configure-dwarf4/0001-configure.ac-let-dwarf4-be-Wine-s-default-debug-form.patch
fi
# Patchset crypt32-CMS_Certificates
# |
# | This patchset fixes the following Wine bugs: