HACK: make sure to build "-O0 -g" and enable debug logging

laforge/wip
Harald Welte 10 months ago
parent 4775a1f218
commit 9155daeeba
  1. 2
      configure.ac
  2. 2
      tinyDEMO/droid-makefile
  3. 2
      tinyDEMO/dssl.rl
  4. 2
      tinyNET/configure.ac
  5. 2
      tinySAK/configure.ac

@ -177,7 +177,7 @@ else
CFLAGS="${CFLAGS} -Os -s"
else
CFLAGS="${CFLAGS} -O3 -DNDEBUG"
CFLAGS="${CFLAGS} -O0 -g -DNDEBUG"
fi
CPPFLAGS=$CFLAGS
CXXFLAGS=$CFLAGS

@ -2,7 +2,7 @@ APP := demo
FFMPEG_LDFLAGS := -lavutil -lswscale -lavcodec -lgcc
CFLAGS := $(CFLAGS_COMMON) -I../tinySAK/src -I../tinyNET/src -I../tinySMS/include -I../tinyHTTP/include -I../tinySDP/include -I../tinyDAV/include -I../tinyMEDIA/include -I../tinySIP/include -I../tinyMSRP/include
CFLAGS := -g $(CFLAGS_COMMON) -I../tinySAK/src -I../tinyNET/src -I../tinySMS/include -I../tinyHTTP/include -I../tinySDP/include -I../tinyDAV/include -I../tinyMEDIA/include -I../tinySIP/include -I../tinyMSRP/include
LDFLAGS := $(LDFLAGS_COMMON) -Wl,-Bsymbolic,--whole-archive -Wl,--entry=main -lm #$(FFMPEG_LDFLAGS) -ltinySAK -ltinyNET -ltinyHTTP -ltinyIPSec -ltinySMS -ltinySDP -ltinyMEDIA -ltinyDAV -ltinySIP -ltinyMSRP
LDFLAGS :=
LIBS := $(FFMPEG_LDFLAGS) -ltinySAK -ltinyNET -ltinyHTTP -ltinyIPSec -ltinySMS -ltinySDP -ltinyMEDIA -ltinyDAV -ltinySIP -ltinyMSRP

@ -28,7 +28,7 @@
#include <string.h>
#define DEBUG_PARSER 0
#define DEBUG_PARSER 1
#define set_level(_lv) if(opt) opt->lv = _lv;

@ -38,7 +38,7 @@ AC_ARG_ENABLE(debug,
CFLAGS="$CFLAGS -O0 -g3 -DDEBUG"
AC_MSG_RESULT(yes)
else
CFLAGS="$CFLAGS -O3 -NDEBUG"
CFLAGS="$CFLAGS -O0 -g -DDEBUG"
AC_MSG_RESULT(no)
fi
],

@ -38,7 +38,7 @@ AC_ARG_ENABLE(debug,
CFLAGS="$CFLAGS -O0 -g3 -DDEBUG"
AC_MSG_RESULT(yes)
else
CFLAGS="$CFLAGS -O3 -NDEBUG"
CFLAGS="$CFLAGS -O0 -g -DDEBUG"
AC_MSG_RESULT(no)
fi
],

Loading…
Cancel
Save