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:
parent
623a98dab0
commit
bdd6bf3ccd
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue