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:
6
Makefile
6
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user