From: Andy Green Date: Mon, 11 Feb 2013 01:31:43 +0000 (+0800) Subject: stop O2 override X-Git-Tag: upstream/1.7.3~995 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3957ef80454f8772c683a05930ce20c0d1bf2f8;p=platform%2Fupstream%2Flibwebsockets.git stop O2 override Now we are building with -O0 -g and debug enabled by default. --disable-debug in configure will get you a -04 without -g Signed-off-by: Andy Green --- diff --git a/changelog b/changelog index 77d7f8b..820310b 100644 --- a/changelog +++ b/changelog @@ -74,7 +74,10 @@ the visual studio project files that were in the tree until now. - cutomizable frame rx buffer size by protocol - + - By default debug is enabled and the library is built for -O0 -g to faclitate + that. Use --disable-debug configure option to build instead with -O4 + and no -g (debug info), obviously providing best performance and + reduced binary size. v1.1-chrome26-firefox18 ======================= diff --git a/configure.ac b/configure.ac index 1e4ae42..1c3959a 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_INIT(libwebsockets, 1.1, andy@warmcat.com, libwebsockets, http://libwebsocket AC_CONFIG_SRCDIR([test-server/test-server.c]) AC_CONFIG_HEADERS([config.h]) +: ${CFLAGS=""} AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AM_PROG_AR LT_INIT(shared) diff --git a/lib/Makefile.am b/lib/Makefile.am index a54d753..f24ef13 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -54,7 +54,7 @@ endif if DISABLE_DEBUG libwebsockets_la_CFLAGS+= -O4 else -libwebsockets_la_CFLAGS+= -g +libwebsockets_la_CFLAGS+= -O0 -g endif if MINGW