mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +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
|
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)
|
# The optimization flag may be overriden with the environment variable CFLAGS.
|
||||||
CFLAGS_add += -O3
|
CFLAGS ?= -O2
|
||||||
endif
|
|
||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue