From: Jacek Caban <jacek@codeweavers.com> LLD creates debug directories in more cases than binutils. When using DWARF debug symbols, the debug directory is not populated with the usual content, which may confuse applications that parse it, such as Steam. On Windows, system DLLs contain a debug directory with a build ID (and a PDB link). This makes Wine modules more similar to Windows, so enable it for GCC builds too. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 88cca33bcd6..3aa0d5683f6 100644 --- a/configure.ac +++ b/configure.ac @@ -676,7 +676,7 @@ This is an error since --enable-archs=$wine_arch was requested.])]) test "x$enable_werror" != xyes || WINE_TRY_PE_CFLAGS([-Werror]) dnl clang for PE target wants -build-id (and not --build-id as gcc/mingw or clang in unix target) dnl don't bother testing flags, compilation will fail afterwards - test "x$enable_build_id" != xyes || AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--build-id"]) + test "x$enable_build_id" != xno && AS_VAR_APPEND([${wine_arch}_LDFLAGS],[" -Wl,--build-id"]) dnl Options that differ between C and C++ AS_VAR_COPY([${wine_arch}_EXTRACXXFLAGS],[${wine_arch}_EXTRACFLAGS]) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10524