From b700021569c1f16f63c86a9ccd912cfdc7126f41 Mon Sep 17 00:00:00 2001 From: Steve Lhomme <robux4@ycbcr.xyz> Date: Thu, 24 Mar 2022 11:20:43 +0100 Subject: [PATCH] configure: don't pass -gcodeview to the linker CFLAGS is added to the linker flags and newer LLVM don't like that. CPPFLAGS is used during C compilation and C++ but not added to LDFLAGS. --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 728f19d9be65..1d5a37daeb4c 100644 --- a/configure.ac +++ b/configure.ac @@ -422,8 +422,7 @@ AC_ARG_ENABLE([pdb], AS_IF([test "${SYS}" = "mingw32"],[ AS_IF([test "${enable_pdb}" = "yes"], [ vlc_build_pdb=1 - AX_APPEND_FLAG([-g -gcodeview],[CFLAGS]) - AX_APPEND_FLAG([-g -gcodeview],[CXXFLAGS]) + AX_APPEND_FLAG([-g -gcodeview],[CPPFLAGS]) LDFLAGS="${LDFLAGS} -Wl,-pdb=" ],[]) ]) -- GitLab