From bad97961dc69d46e57af0b1076f9ebea7a7f3259 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 20 Jun 2020 21:26:21 -0700 Subject: [PATCH] Elide -g from CXXFLAGS before the c++ test. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 89365077..cc6769ab 100644 --- a/configure.ac +++ b/configure.ac @@ -200,6 +200,9 @@ AC_MSG_CHECKING([whether to enable SIMD optimizations]) AC_ARG_ENABLE(simd, AS_HELP_STRING([--disable-simd],[disable SIMD optimizations (requires c++)])) +# Clag is crashing with -g -O2, so we'll get rid of -g for now. +CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'` + if test x"$enable_simd" != x"no"; then # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required if test x"$build_cpu" = x"x86_64"; then @@ -244,8 +247,6 @@ if test x"$SIMD" != x""; then AC_MSG_RESULT([yes ($SIMD)]) AC_DEFINE(HAVE_SIMD, 1, [Define to 1 to enable SIMD optimizations]) SIMD='$(SIMD_'"$SIMD)" - # Clag is crashing with -g -O2, so we'll get rid of -g (just for the one file). - CXXFLAGS=`echo "'$CXXFLAGS'" | sed 's/-g //'` # We only use c++ for its target attribute dispatching, disable unneeded bulky features CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti" else -- 2.47.2