Skip to content

Commit

Permalink
Fix cflags for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Sep 9, 2018
1 parent cac8094 commit c695d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c695d06

Please sign in to comment.