Fix cflags for release build
This commit is contained in:
parent
cac8094ce1
commit
c695d06263
2
Makefile
2
Makefile
|
@ -113,7 +113,7 @@ LDFLAGS ?= -Wl,-O1 -Wl,--as-needed
|
||||||
BUILD_TYPE ?= "Debug"
|
BUILD_TYPE ?= "Debug"
|
||||||
|
|
||||||
ifeq "$(BUILD_TYPE)" "Release"
|
ifeq "$(BUILD_TYPE)" "Release"
|
||||||
CFLAGS ?= -DNDEBUG -O2 -D_FORTIFY_SOURCE=2
|
CFLAGS += -DNDEBUG -O2 -D_FORTIFY_SOURCE=2
|
||||||
else ifeq "$(BUILD_TYPE)" "Debug"
|
else ifeq "$(BUILD_TYPE)" "Debug"
|
||||||
CFLAGS += -ggdb -Wshadow
|
CFLAGS += -ggdb -Wshadow
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue