Fix cflags for release build

This commit is contained in:
Yuxuan Shui 2018-09-09 02:47:26 +01:00
parent cac8094ce1
commit c695d06263
1 changed files with 1 additions and 1 deletions

View File

@ -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