From: Marc-André Lureau Date: Wed, 6 Jul 2022 11:58:37 +0000 (+0400) Subject: cmake: use -gdwarf-2 X-Git-Tag: dbus-1.15.0~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c79d428564f974452b720264065d609281a97132;p=thirdparty%2Fdbus.git cmake: use -gdwarf-2 GCC 10.2.0 complains on opensuse mingw builds, ex: disable-crash-handling.c: error: STABS debugging information is obsolete and not supported anymore [-Werror] According to https://gitlab.freedesktop.org/dbus/dbus/-/issues/133#note_129599, -gdwarf-2 is the second best option. Signed-off-by: Marc-André Lureau --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0914f07bd..47953aa3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -376,8 +376,8 @@ string(APPEND CMAKE_CXX_FLAGS " ${WARNINGS_CXXFLAGS}") # let wine be able to show file and lines in backtrace if(DBUS_USE_WINE) - string(APPEND CMAKE_C_FLAGS " -gstabs") - string(APPEND CMAKE_CXX_FLAGS " -gstabs") + string(APPEND CMAKE_C_FLAGS " -gdwarf-2") + string(APPEND CMAKE_CXX_FLAGS " -gdwarf-2") endif() if(UNIX AND NOT DBUS_DISABLE_ASSERT)