1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Disabling code optimization flag for DEBUG build

This commit is contained in:
Saumitra Vikram
2016-09-03 08:44:14 +05:30
parent 7f7eaad07e
commit 38e54ea42c

View File

@@ -60,14 +60,14 @@ BUILD_DIRS += $(BUILD_DIR)/test
endif endif
# only set main compile options if none were chosen # only set main compile options if none were chosen
CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -O2 -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400 CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400
LIBS = -lpthread -lm LIBS = -lpthread -lm
ifdef WITH_DEBUG ifdef WITH_DEBUG
CFLAGS += -g -DDEBUG_ENABLED CFLAGS += -g -DDEBUG
else else
CFLAGS += -DNDEBUG CFLAGS += -O2 -DNDEBUG
endif endif
ifdef WITH_CPP ifdef WITH_CPP