From 35dec195a1f0a7a3aa8fab893698e512f5851d19 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Wed, 11 May 2022 10:09:12 +0200 Subject: use -g with --gdb-index in configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It triggers an assert in mold's --gdb-index handling because of missing debug info. It sort of makes sense that --gdb-index should be tested with debug info actually used. Change-Id: I5adced29355deec9f0a6af390867f4ff2f2bd29c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134153 Reviewed-by: Ilmari Lauhakangas Reviewed-by: Luboš Luňák Tested-by: Jenkins --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6bd06894085f..d09359eea8b4 100644 --- a/configure.ac +++ b/configure.ac @@ -4800,7 +4800,7 @@ if test "$enable_gdb_index" != "no"; then if test "$enable_gdb_index" = yes -o \( "$test_gdb_index" = "yes" -a -n "$ENABLE_DEBUG$ENABLE_DBGUTIL" \); then AC_MSG_CHECKING([whether $CC_BASE supports -ggnu-pubnames]) save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Werror -ggnu-pubnames" + CFLAGS="$CFLAGS -Werror -g -ggnu-pubnames" have_ggnu_pubnames= AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ return 0; ]])],[have_ggnu_pubnames=TRUE],[have_ggnu_pubnames=]) if test "$have_ggnu_pubnames" != "TRUE"; then -- cgit v1.2.3