From 1f63723d9d6d1d911e2fc2660cd890e14ab95cb8 Mon Sep 17 00:00:00 2001 From: SarahW Date: Sat, 20 Jun 2020 18:40:53 +0100 Subject: [PATCH] Add -fcommon to configure.ac. Should fix building on GCC 10.x. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 42f8716..baf37d8 100644 --- a/configure.ac +++ b/configure.ac @@ -27,12 +27,12 @@ AC_MSG_CHECKING([whether to enable debugging]) AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [build debug executable])) if test "$enable_debug" = "yes"; then - CFLAGS="-Wall -O0 -g -D_DEBUG" - CXXFLAGS="-Wall -O0 -g -D_DEBUG" + CFLAGS="-Wall -O0 -g -D_DEBUG -fcommon" + CXXFLAGS="-Wall -O0 -g -D_DEBUG -fcommon" AC_MSG_RESULT([yes]) else - CFLAGS="-O3" - CXXFLAGS="-O3" + CFLAGS="-O3 -fcommon" + CXXFLAGS="-O3 -fcommon" AC_MSG_RESULT([no]) fi