From c695d062637ff44000be9b69b038c47cc432a859 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 9 Sep 2018 02:47:26 +0100 Subject: [PATCH] Fix cflags for release build --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f956ca1d6f..83c8dd8fe0 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ LDFLAGS ?= -Wl,-O1 -Wl,--as-needed BUILD_TYPE ?= "Debug" ifeq "$(BUILD_TYPE)" "Release" - CFLAGS ?= -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 + CFLAGS += -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 else ifeq "$(BUILD_TYPE)" "Debug" CFLAGS += -ggdb -Wshadow endif