mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
Set default optimization flag to -O2
Allow overriding optimization flag with the environment variable CFLAGS.
This commit is contained in:
parent
e102501e24
commit
f4daa7e8bb
1 changed files with 2 additions and 3 deletions
5
Make.inc
5
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue