diff --git a/Makefile.rules b/Makefile.rules index 5af82a82efe..1eb072aad48 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -213,7 +213,7 @@ ifdef ENABLE_PROFILING C.Flags := $(OPTIMIZE_OPTION) -pg -g LD.Flags := $(OPTIMIZE_OPTION) -pg -g else - ifdef ENABLE_OPTIMIZED + ifeq ($(ENABLE_OPTIMIZED),1) BuildMode := Release # Don't use -fomit-frame-pointer on Darwin or FreeBSD. ifneq ($(OS),FreeBSD)