1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

bind gcc debug generation to_DEBUG

Either generate debug sections in output or optimize aggressively,
controlled by the existing --disable-debug

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-01-21 12:19:30 +08:00
parent 623a98dab0
commit bdd6bf3ccd

View file

@ -45,6 +45,12 @@ endif
libwebsockets_la_CFLAGS=-Wall -std=gnu99 -pedantic -g
libwebsockets_la_LDFLAGS=
if DISABLE_DEBUG
libwebsockets_la_CFLAGS+= -O4
else
libwebsockets_la_CFLAGS+= -g
endif
if MINGW
libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc