mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
build in non-debug mode by default
* declare NDEBUG for library and contrib * activate pjsip extra checks as all PJ_ASSERT's are deactivated Side effect: pjsip does not call abort() due to disabled assertions. If debug is required: * contrib: call bootstrap with --enable-debug * libring: call configure with --enable-debug Change-Id: I47b104c0f32352f0503457a9d419c4ed5db4e126
This commit is contained in:
@ -668,7 +668,8 @@ dnl debug mode is default-disabled
|
||||
AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Build in debug mode, adds stricter warnings, disables optimization]))
|
||||
|
||||
AS_IF([test "x$enable_debug" = "xyes"],
|
||||
[CXXFLAGS="${CXXFLAGS} -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor -Wno-unknown-pragmas -Wformat=2 -O0"])
|
||||
[CXXFLAGS="${CXXFLAGS} -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor -Wno-unknown-pragmas -Wformat=2 -O0"],
|
||||
[CXXFLAGS="${CXXFLAGS} -DNDEGUG=1"])
|
||||
|
||||
dnl What Makefiles to generate
|
||||
|
||||
|
Reference in New Issue
Block a user