From f4daa7e8bb7219208b24a3df5d8aa1ff1ad4a182 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Fri, 13 Nov 2015 13:14:55 -0500 Subject: [PATCH] Set default optimization flag to -O2 Allow overriding optimization flag with the environment variable CFLAGS. --- Make.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Make.inc b/Make.inc index 9609331..6858ea3 100644 --- a/Make.inc +++ b/Make.inc @@ -47,9 +47,8 @@ endif CFLAGS_add += -std=c99 -Wall -I$(OPENLIBM_HOME) -I$(OPENLIBM_HOME)/include -I$(OPENLIBM_HOME)/ld80 -I$(OPENLIBM_HOME)/$(ARCH) -I$(OPENLIBM_HOME)/src -DASSEMBLER -D__BSD_VISIBLE -Wno-implicit-function-declaration -ifneq ($(NOOPT),1) -CFLAGS_add += -O3 -endif +# The optimization flag may be overriden with the environment variable CFLAGS. +CFLAGS ?= -O2 default: all