[master] db18d8408 build: Split --enable-debugging-symbols setup

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Aug 25 10:21:05 UTC 2021


commit db18d84089f7704fee3ac34ec73cbb2f80ce5978
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Aug 24 10:37:25 2021 +0200

    build: Split --enable-debugging-symbols setup
    
    Similarly to how the ASAN setup was split in two steps.

diff --git a/configure.ac b/configure.ac
index 5c4558548..b2c81109a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -771,12 +771,18 @@ esac
 
 # --enable-debugging-symbols
 AC_ARG_ENABLE(debugging-symbols,
-	AS_HELP_STRING([--enable-debugging-symbols],[enable debugging symbols (default is NO)]),
+	AS_HELP_STRING([--enable-debugging-symbols],
+		[enable debugging symbols (default is NO)]),
+	    [],
+	    [enable_debugging_symbols=no])
+
+if test "$enable_debugging_symbols" != no; then
 	if test "x$SUNCC" = "xyes" ; then
 		CFLAGS="${CFLAGS} -O0 -g"
 	else
 		CFLAGS="${CFLAGS} -O0 -g -fno-inline"
-	fi)
+	fi
+fi
 
 AC_SUBST(AM_LT_LDFLAGS)
 


More information about the varnish-commit mailing list