diff options
| author | Jonathan Lennox <jonathan.lennox@8x8.com> | 2024-04-14 07:29:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-14 13:29:11 +0200 |
| commit | d45b53f5dfa79533f5c5e7aefa5d7570405afb39 (patch) | |
| tree | 925ad8aee923c0fadda2ea77d6a8d1de28ec7b2f | |
| parent | 5106d51c86908dfdbdd7b8484191a83401aa709f (diff) | |
Separate --enable-debug from --enable-opt in configure. (#700)
This makes -g -O2 the default build mode.
| -rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index cdcd483..5376552 100644 --- a/configure.ac +++ b/configure.ac @@ -105,7 +105,15 @@ AC_ARG_ENABLE(debug, enable_debug=$enableval,enable_debug=yes) if test x$enable_debug = xyes; then AC_DEFINE(SCTP_DEBUG, 1, [Provide debug information]) - CFLAGS="$CFLAGS -g -O0" + CFLAGS="$CFLAGS -g" +fi + +AC_ARG_ENABLE(opt, + AC_HELP_STRING( [--enable-opt], + [optimize code @<:@default=yes@:>@]), + enable_opt=$enableval,enable_opt=yes) +if test x$enable_opt != xyes; then + CFLAGS="$CFLAGS -O0" fi AC_ARG_ENABLE(inet, |
