diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-07-04 02:42:52 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-07-04 02:42:52 -0600 |
commit | c566cd0e4a7d9424a95c7d7c16f861e458bee8f1 (patch) | |
tree | b2c604c2e35621be166e0e8a902cc0dd291e4948 /configure.ac | |
parent | f720e89f631da58c355ead60b35225e43d0d9d33 (diff) | |
download | alpine-c566cd0e4a7d9424a95c7d7c16f861e458bee8f1.tar.xz |
* When building Alpine, the option --disable-debug will only affect if
its binary is compiled with debug, and not the ability of alpine to
generate internal debug. Alpine will not write debug files unless
started with the option -d, so for example "alpine -d 2" will generate
a debug file at level 2, but just issuing the alpine command will not
write any debug to a file.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index c93f769..118f0ae 100644 --- a/configure.ac +++ b/configure.ac @@ -224,16 +224,18 @@ AC_ARG_WITH(web-bin, dnl disable debug, turned on by default AC_MSG_CHECKING([option: debugging is enabled]) -AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug],[Exclude debug messages from source])) +AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug],[Exclude debug from the binary])) if test x$enable_debug != "xno" ; then AM_CFLAGS="$AM_CFLAGS -g" - AC_DEFINE([DEBUG], [1], [Compile in debugging]) - AC_DEFINE([DEBUGJOURNAL], [1], [Display debug messages in journal]) AC_MSG_RESULT([yes]) else -dnl ??? set AM_CFLAGS to optimize ??? AC_MSG_RESULT([no]) fi +dnl we want debug messages to be compiled into the binary, but only write to a file +dnl upon user request. +AC_DEFINE([DEBUG], [1], [Compile in debugging]) +AC_DEFINE([DEBUGJOURNAL], [1], [Display debug messages in journal]) + dnl disable optimization, on by default AC_MSG_CHECKING([option: optimization is enabled]) |