mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
Add C/CXX/OBJC flags for debug mode (same as ms2)
This commit is contained in:
parent
0ac4617c35
commit
bf782bcea7
1 changed files with 19 additions and 0 deletions
19
configure.ac
19
configure.ac
|
|
@ -356,6 +356,25 @@ AC_ARG_ENABLE(debug,
|
|||
esac],
|
||||
[debug_enabled=no]
|
||||
)
|
||||
AS_CASE([$enable_debug],
|
||||
[yes],[
|
||||
CFLAGS="$CFLAGS -g -DDEBUG"
|
||||
CXXFLAGS="$CXXFLAGS -g -DDEBUG"
|
||||
OBJCFLAGS="$OBJCFLAGS -g -DDEBUG"
|
||||
],
|
||||
[no],
|
||||
[
|
||||
case "$CFLAGS" in
|
||||
*-O*)
|
||||
;;
|
||||
*)
|
||||
CFLAGS="$CFLAGS -O2 -g"
|
||||
CXXFLAGS="$CXXFLAGS -O2 -g"
|
||||
OBJCFLAGS="$OBJCFLAGS -O2 -g"
|
||||
;;
|
||||
esac
|
||||
],
|
||||
[AC_MSG_ERROR([Bad value ($enable_debug) for --enable-debug. Valid values are yes or no.])])
|
||||
|
||||
dnl enable truespeech codec support
|
||||
AC_ARG_ENABLE(truespeech,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue