aarch64: Fix f{max,min}{f} build for GCC 4.9 and 5
[glibc.git] / sysdeps / aarch64 / fpu / Makefile
blob4a182bd6d6886387816e97128524957504e37595
1 ifeq ($(subdir),math)
2 CFLAGS-e_sqrtf.c += -fno-math-errno
3 CFLAGS-e_sqrt.c += -fno-math-errno
4 CFLAGS-s_lroundf.c += -fno-math-errno
5 CFLAGS-s_lround.c += -fno-math-errno
6 CFLAGS-s_llroundf.c += -fno-math-errno
7 CFLAGS-s_llround.c += -fno-math-errno
8 # GCC 4.9 and 5 requires the flag to correct emits a f{max,min}nm
9 # for a __builtin_{fmax,fmin}{f}.
10 CFLAGS-s_fmax.c += -ffinite-math-only
11 CFLAGS-s_fmaxf.c += -ffinite-math-only
12 CFLAGS-s_fmin.c += -ffinite-math-only
13 CFLAGS-s_fminf.c += -ffinite-math-only
14 endif