Skip to content

Commit f4daa7e

Browse files
committed
Set default optimization flag to -O2
Allow overriding optimization flag with the environment variable CFLAGS.
1 parent e102501 commit f4daa7e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Make.inc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ endif
4747

4848
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
4949

50-
ifneq ($(NOOPT),1)
51-
CFLAGS_add += -O3
52-
endif
50+
# The optimization flag may be overriden with the environment variable CFLAGS.
51+
CFLAGS ?= -O2
5352

5453
default: all
5554

0 commit comments

Comments
 (0)