2017-10-23 22:31:37 +08:00
|
|
|
ifeq ($(subdir),math)
|
|
|
|
CFLAGS-e_sqrtf.c += -fno-math-errno
|
|
|
|
CFLAGS-e_sqrt.c += -fno-math-errno
|
|
|
|
CFLAGS-s_lroundf.c += -fno-math-errno
|
|
|
|
CFLAGS-s_lround.c += -fno-math-errno
|
|
|
|
CFLAGS-s_llroundf.c += -fno-math-errno
|
|
|
|
CFLAGS-s_llround.c += -fno-math-errno
|
2017-11-17 05:52:59 +08:00
|
|
|
# GCC 4.9 and 5 requires the flag to correct emits a f{max,min}nm
|
|
|
|
# for a __builtin_{fmax,fmin}{f}.
|
|
|
|
CFLAGS-s_fmax.c += -ffinite-math-only
|
|
|
|
CFLAGS-s_fmaxf.c += -ffinite-math-only
|
|
|
|
CFLAGS-s_fmin.c += -ffinite-math-only
|
|
|
|
CFLAGS-s_fminf.c += -ffinite-math-only
|
2017-10-23 22:31:37 +08:00
|
|
|
endif
|