shithub: sox

Download patch

ref: 579fae4ab7d37423aee4d9cdf7a29f9d96c2b764
parent: c6e78c58c8ce634b69f979327113e45a805fdaae
author: Mans Rullgard <mans@mansr.com>
date: Sun Aug 16 11:38:58 EDT 2020

build: drop --enable-debug option

The default CFLAGS already includes -g.  If other flags are desired,
they can be easily provided by setting CFLAGS in the environment.

--- a/configure.ac
+++ b/configure.ac
@@ -67,19 +67,6 @@
 fi
 AM_CONDITIONAL(HAVE_WIN32_GLOB, test x$using_win32_glob = xyes)
 
-dnl Debugging
-AC_MSG_CHECKING([whether to make a debug build])
-AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [make a debug build]))
-AC_MSG_RESULT($enable_debug)
-if test "$enable_debug" = "yes"; then
-    CFLAGS="-g"
-    if test "$GCC" = "yes"; then
-        CFLAGS="$CFLAGS -ggdb"
-    fi
-else
-    enable_debug=no
-fi
-
 AX_APPEND_COMPILE_FLAGS([-fstack-protector-strong])
 AX_APPEND_COMPILE_FLAGS([-Wall -Wmissing-prototypes -Wstrict-prototypes])
 
@@ -498,7 +485,6 @@
 # Report configuration.
 echo
 echo "BUILD OPTIONS"
-echo "Debugging build............$enable_debug"
 echo "Distro name ...............${with_distro:-unspecified}"
 echo "Dynamic loading support....$using_libltdl"
 echo "Pkg-config location........$pkgconfigdir"